D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
yonester
Full window
Github gist
7th Grade Graphs with D3
<style> line { stroke: black; } </style> <body> <script src="https://d3js.org/d3.v3.min.js"></script> <script> var w = 500, h = 500, n = 65, s = h / n; d3.select("body").append("svg") .attr("width", w) .attr("height", h) .selectAll("line") .data(d3.range(n)).enter() .append("line") .attr("x1", 0) .attr("y1", function(d) { return d * s; }) .attr("x2", function(d) { return d * s; }) .attr("y2", h); </script> </body>
Modified
http://d3js.org/d3.v3.min.js
to a secure url
https://d3js.org/d3.v3.min.js