D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
Beaupe
Full window
Github gist
Population Projections Europe
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Loading Europe Population Projections</title> <script type="text/javascript" src="https://d3js.org/d3.v3.js"></script> </head> <body> <svg width="500" height="300"> <circle cx="100" cy="50" r="50" fill="pink" /> <circle cx="300" cy="50" r="50" fill="blue" /> <line x1="100" y1="100" x2="100" y2="150" stroke="pink" stroke-width="6" /> <line x1="75" y1="125" x2="125" y2="125" stroke="pink" stroke-width="6" /> <line x1="300" y1="100" x2="300" y2="152" stroke="blue" stroke-width="6" /> <line x1="250" y1="110" x2="300" y2="150" stroke="blue" stroke-width="6" /> <line x1="350" y1="110" x2="300" y2="150" stroke="blue" stroke-width="6" /> <p>Population Projections for Europe</p> <script type="text/javascript"> d3.csv("EuropePopulationsProjections.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