D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
wmerrow
Full window
Github gist
wbm Module 2 Exercise - PAC data
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Will's Module 2 Exercise</title> <script type="text/javascript" src="https://d3js.org/d3.v3.js"></script> <style type="text/css"> body { background-color: whitesmoke } svg { background-color: goldenrod } </style> </head> <body> <p>Module 2 Exercise by Will / wbm</p> <svg width="500" height="300"> <line x1="50" y1="150" x2="450" y2="150" stroke="black" stroke-width="2"/> <circle cx="200" cy="180" r="20" fill="black" /> <circle cx="250" cy="180" r="10" fill="black" /> <circle cx="300" cy="180" r="20" fill="black" /> <circle cx="200" cy="120" r="10" fill="black" /> <circle cx="250" cy="120" r="20" fill="black" /> <circle cx="300" cy="120" r="10" fill="black" /> </svg> <script type="text/javascript"> d3.csv("PACdata.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