D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
Abechtel
Full window
Github gist
Module 2 Exercise
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Module 2 Exercise</title> <script type="text/javascript" src="https://d3js.org/d3.v3.js"></script> </head> <body> <p>My first SVG!</p> <svg width="500" height= "500" > <circle cx="100" cy="100" r="100" fill= "purple" /> <text x="50" y="100" fill="black" font-size="28" font-weight="bold" font-family="Helvetica">It's Purple!</text> <circle cx="200" cy="200" r="100" fill= "blue" /> <text x="150" y="200" fill="black" font-size="28" font-weight="bold" font-family="Helvetica">This one is blue</text> </svg> <script type="text/javascript"> //Load in contents of CSV file d3.csv("ChicagoFDIC.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> </body> </html>
Modified
http://d3js.org/d3.v3.js
to a secure url
https://d3js.org/d3.v3.js