D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
peterbsmyth
Full window
Github gist
demoing building blocks
hello markdown
<!DOCTYPE html> <head> <meta charset="utf-8"> <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> </head> <body> <script> var svg = d3.select("body") .append("svg") .attr("width",300).attr("height",300); svg.append("rect") .attr({ x: 0, y: 0, width: 110, height: 58, fill: "steelblue" }); console.log("you are now rocking with d3", d3); </script> </body>
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js