D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
shampshire
Full window
Github gist
RedList Test
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Red List Project</title> <script type="text/javascript" src="https://d3js.org/d3.v3.js"></script> </head> <body> <svg width="640" height="480" xmlns="https://www.w3.org/2000/svg" xmlns:svg="https://www.w3.org/2000/svg"> <g> <title>Layer 1</title> <rect id="svg_1" height="210" width="227" y="213" x="58" stroke-width="5" fill="#7f0000"/> <circle opacity="0.6" id="svg_2" r="116.97009" cy="197" cx="285" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="5" fill="#7f00ff"/> <path id="svg_8" d="m391,163c-65,27 -235,198 -235,198c0,0 191,78 192,79c1,1 144,-122 144,-122c0,0 -26,-143 -26,-143" opacity="0.6" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="5" fill="#7f7f00"/> <text xml:space="preserve" text-anchor="middle" font-family="Fantasy" font-size="24" id="svg_9" y="206" x="111.34375" opacity="0.6" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="0" fill="#000000">SVG Image</text> </g> </svg> <script type="text/javascript"> //Load in contents of CSV file d3.csv("redbook.csv", function(data) { //Now CSV contents have been transformed into //an array of JSON objects. //Log 'data' to the console, for verification. console.log(data); }); </script> </body> </html>
Modified
http://d3js.org/d3.v3.js
to a secure url
https://d3js.org/d3.v3.js