D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
guilhermesimoes
Full window
Github gist
D3 V3 join & enter
<!DOCTYPE html> <meta charset="utf-8"> <style> .chart div { display: inline-block; margin: 5px; padding: 5px; border: 1px black solid; } </style> <div class="chart"></div> <script src="https://d3js.org/d3.v3.min.js"></script> <script> var data = ["A", "A", "A"]; var a = d3.select(".chart") .selectAll("div") .data(data, function(d) { return d; }) .enter().append("div") .text(String); </script>
Modified
http://d3js.org/d3.v3.min.js
to a secure url
https://d3js.org/d3.v3.min.js