D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
mariceratti
Full window
Github gist
Mari's first SVG
<!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>Mari's first SVG</p> <svg width="500" height="200"> <circle cx="90" cy="90" r="80" fill="blue" /> <rect x="80" y="80" width="100" height="100" fill="yellow" /> <text x="208" y="100" fill="orange" font-size="42" font-weight="bold" font-family="verdana">Mari's SVG</text> </svg> <script type="text/javascript"> //Load in contents of CSV file d3.csv("tabelaMDGflorestasoceanosLAC.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