displayHTML(s""" <!DOCTYPE html> <meta charset="utf-8"> <body> <script src="/files/customjs/d3.v3.min.js"></script> <script> var width = 200 var height = 200 var vertices = d3.range(100).map(function(d) { return [Math.random() * width, Math.random() * height]; }); var lineFunction = d3.svg.line() .x(function(d) { return d[0]; }) .y(function(d) { return d[1]; }) .interpolate("linear"); //The SVG Container var svgContainer = d3.select("body").append("svg") .attr("width", 200) .attr("height", 200); //The line SVG Path we draw var lineGraph = svgContainer.append("path") .attr("d", lineFunction(vertices)) .attr("stroke", "blue") .attr("stroke-width", 2) .attr("fill", "none"); </script> """)
FileStore
The FileStore is a special folder within DBFS where you can save files and have them accessible in your web browser.
DisplayHTML
.Last refresh: Never