D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
tmcw
Full window
Github gist
Something about d3 I did not understand.
<!DOCTYPE html> <html> <head> <title></title> <style> body { font:normal 14px/20px 'Georgia', serif; } </style> </head> <body> <div id='container'> <h1>Something about d3 I did not understand</h1> </div> <script src='https://d3js.org/d3.v3.min.js'></script> <script> var ol = d3.select('#container') .selectAll('ol') .data(['hello']) .enter() .append('ol'); var abc = ol.selectAll('li') .data(['a', 'b', 'c']) .enter() .append('li') .text(String) .attr('class', String); ol.select('li.c').text(String); </script> </body> </html>
Modified
http://d3js.org/d3.v3.min.js
to a secure url
https://d3js.org/d3.v3.min.js