D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
lorenazs
Full window
Github gist
Spending in R&D by country
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Investment in R+D by country</title> <script type="text/javascript" src="https://d3js.org/d3.v3.js"></script> </head> <body> <svg width="600" height="600"> <circle cx="300" cy="300" r="180" fill="rgba(255, 250, 205, 0.50)"/> <circle cx="300" cy="300" r="60" fill="rgba(255, 215, 0, 1.0)" /> <circle cx="300" cy="300" r="30" fill="rgba(255, 255, 0, 1.0)"/> <circle cx="300" cy="180" r="30" fill="rgba(139, 0, 139, 1.0)"/> <circle cx="300" cy="180" r="15" fill="rgba(186, 85, 211, 1.0)"/> <circle cx="300" cy="420" r="30" fill="rgba(139, 0, 139, 1.0)"/> <circle cx="300" cy="420" r="15" fill="rgba(186, 85, 211, 1.0)"/> <circle cx="180" cy="300" r="30" fill="rgba(139, 0, 139, 1.0)"/> <circle cx="180" cy="300" r="15" fill="rgba(186, 85, 211, 1.0)"/> <circle cx="420" cy="300" r="30" fill="rgba(139, 0, 139, 1.0)"/> <circle cx="420" cy="300" r="15" fill="rgba(186, 85, 211, 1.0)"/> <text x="150" y="80" fill="charcoal" font-size="36" font-weight="bold" font-family="Helvetica">D3 and SVG First Try</text> </svg> <script type="text/javascript"> //loading the csv data d3.csv('R&D.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