D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
masatos7
Full window
Github gist
Internet Users
<!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> <script type="text/javascript"> //Load in contents of CSV file d3.csv("netuser.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> <svg width="500" height="500"> <circle cx="250" cy="220" r="100" fill="#eee" /> <circle cx="250" cy="220" r="90" fill="#ddd" /> <circle cx="250" cy="220" r="80" fill="#ccc" /> <circle cx="250" cy="220" r="70" fill="#bbb" /> <circle cx="250" cy="220" r="60" fill="#aaa" /> <circle cx="250" cy="220" r="50" fill="#999" /> <circle cx="250" cy="220" r="40" fill="#888" /> <circle cx="250" cy="220" r="30" fill="#777" /> <circle cx="250" cy="220" r="20" fill="#666" /> <circle cx="250" cy="220" r="10" fill="#555" /> <text x="250" y="100" fill="charcoal" text-anchor="middle" font-size="42" font-family="Georgia">First SVG</text> </svg> </body> </html>
Modified
http://d3js.org/d3.v3.js
to a secure url
https://d3js.org/d3.v3.js