D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
fdaudens
Full window
Github gist
Participation 2011
<!DOCTYPE html> <html lang="fr"> <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> <title>SVG Example</title> <style type="text/css"> body { background-color: #ddddff; } svg { background-color: white; } </style> </head> <body> <svg width="635" height="357"> <rect x="200" y="10" width="100" height="100" fill="orange" /> <circle cx="300" cy="140" r="50" fill="violet" /> </svg> <p>Rien à voir ici. Faut aller dans la console!</p> <script type="text/javascript"> //Load in contents of CSV file d3.csv("2011_participation.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