D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
schultzk
Full window
Github gist
Bar Chart
Built with
blockbuilder.org
<!DOCTYPE html> <head> <meta charset="utf-8"> <script src="https://d3js.org/d3.v4.min.js"></script> <style> body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; } </style> </head> <body> <svg width="900" height="600"> <circle cx="100" cy="200" r="10" style="fill:red"></circle> <rect x="200" y="200" width="40" height="60" style="stroke: blue; fill:none"></rect> <rect x="250" y="160" width="40" height="100"></rect> <rect x="300" y="230" width="40" height="30"></rect> </svg> <script> d3.selectAll("rect") .style("fill", "green") d3.append("rect").att</script> </body>
https://d3js.org/d3.v4.min.js