D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
MelanieJulien
Full window
Github gist
GHG csv & html & svg
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Module 2 exercice</title> <script type="text/javascript" src="https://d3js.org/d3.v3.js"></script> <style type="text/css"> svg { background-color: purple; } </style> </head> <body> <script type="text/javascript"> d3.csv("melaniejuliendata.csv", function(data) { console.log(data); }); </script> <svg width="800" height="600"> <line x1="70" y1="250" x2="70" y2="70" stroke="grey" stroke-width="4" /> <line x1="68" y1="250" x2="550" y2="250" stroke="grey" stroke-width="4" /> <line x1="550" y1="248" x2="550" y2="550" stroke="grey" stroke-width="4" /> <circle x="300" y="20" width="200" height="200" fill="violet" /> <rect x="300" y="300" width="200" height="200" fill="violet" /> <circle cx="500" cy="140" r="50" fill="violet" /> <text x="100" y="100" fill="grey" font-size="42" font-weight="bold" font-family="rubrik">Take a look at this!!</text> </svg> </body> </html>
Modified
http://d3js.org/d3.v3.js
to a secure url
https://d3js.org/d3.v3.js