D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
ogdabaum
Full window
Github gist
My first project with D3
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Loading CSV Data with D3</title> <script type="text/javascript" src="https://d3js.org/d3.v3.js"></script> </head> <body> <p>This is my first try with bl.ocks.org! Excited!</p> <script type="text/javascript"> //Load in contents of CSV file d3.csv("scimagojr.csv", function(data) { //Now CSV contents have been transformed into //an array of JSON objects. //Log 'data' to the console, for verification. console.log(data); }); </script> <svg width="600" height="400"> <line x1="300" y1="10" x2="10" y2="190" stroke="red" stroke-width="2" /> <rect x="300" y="100" width="250" height="123" fill="green" /> <circle cx="300" cy="140" r="50" fill="violet" /> </svg> </body> </html>
Modified
http://d3js.org/d3.v3.js
to a secure url
https://d3js.org/d3.v3.js