D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
danielatkin
Full window
Github gist
OECD Tertiary Education Spending 2010 to 2011
<!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <title>OECD Tertiary Education Spending 2010 to 2011</title> <script type="text/javascript" src="https://d3js.org/d3.v3.js"></script> <style type="text/css"> body { background-color: #7f90d8; font-family: Courier New, Lucida Console, Miriam Fixed; color: white; } svg { background-color: #7f90d8; } div { text-align: center; } h1 { text-align: center; } p { text-align: center; } p.italic { font-style: italic; font-size: 6; } </style> </head> <body> <h1>OECD Tertiary Education Spending 2010 to 2011</h1> <p>A test page to create and SVG image and upload my CSV data using D3</p> <p class="italic">pssst.....look in the console</p> <div style="text-align:center;"> <svg width="500" height="400"> <polygon points="250 0,150 200,350 200" style="fill:gold;stroke:brown;stroke-width:1" /> <polygon points="350 200,250 400,450 400" style="fill:gold;stroke:brown;stroke-width:1" /> <polygon points="150 200,50 400,250 400" style="fill:gold;stroke:brown;stroke-width:1" /> </svg> </div> <script type="text/javascript"> //Load in contents of CSV file d3.csv("OECD Tertiary Education Spending.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