D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
helsp
Full window
Github gist
Measels Immunisation project
<!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> <svg width="500" height="200"> <circle cx="100" cy="100" r="50" fill="red" /> <circle cx="200" cy="120" r="60" fill="blue" /> </svg> <body> <p>My measels immunization project page.....see console for data</p> <script type="text/javascript"> //Load in contents of CSV file d3.csv("measelsimmunizationcoverage.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