D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
juddbradbury
Full window
Github gist
Load CSV
<!DOCTYPE html> <html lang="en"> <head> <meta charset="ISO-8859-1"> <title>Loading CSV Data with D3</title> <script type="text/javascript" src="https://d3js.org/d3.v3.js"></script> </head> <body> <p> Loading CSV data with D3</p> <script type="text/javascript"> //Load in contents of CSV file d3.csv("food_court.csv", function(data) { //The CSV data is turned 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