D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
AndresClavijo
Full window
Github gist
Module 2 - Loading Data
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Module 2 - Loading Data</title> <script type="text/javascript" src="https://d3js.org/d3.v3.js"></script> </head> <body> <p>Module 2 Exercise</p> <svg height="210" width="500"> <line x1="0" y1="0" x2="200" y2="200" style="stroke:rgb(255,0,0);stroke-width:2" /> </svg> <script type="text/javascript"> d3.csv("col_cpi.csv", function(data) { console.log(data); }); </script> </body> </html>
Modified
http://d3js.org/d3.v3.js
to a secure url
https://d3js.org/d3.v3.js