D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
raulisa
Full window
Github gist
PSE Rates_First html page with SVG and data loaded
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Loading My First Dataset</title> <script type="text/javascript" src="https://d3js.org/d3.v3.min.js"></script> </head> <body> <svg width="500" height="500"> <line x1="30" y1="20" x2="10" y2="120" stroke="maroon" stroke-width="3" /> <line x1="10" y1="120" x2="120" y2="120" stroke="maroon" stroke-width="3" /> <line x1="120" y1="120" x2="100" y2="20" stroke="maroon" stroke-width="3" /> <line x1="100" y1="20" x2="30" y2="20" stroke="maroon" stroke-width="3" /> <circle cx="65" cy="70" r="20" fill="teal" /> </svg> <script type="text/javascript"> d3.csv("FourYrPubPSECompRate_in6years.csv", function(data) { console.log(data); }); </script> </body> </html>
Modified
http://d3js.org/d3.v3.min.js
to a secure url
https://d3js.org/d3.v3.min.js