D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
phoebebright
Full window
Github gist
d3 nested nest from csv data
<html> <head> <title>D3 Nested Nest Example</title> <script src="https://d3js.org/d3.v2.js"></script> </head> <body> <script> d3.csv("./nest2.csv", function(csv_data){ var nested_data = d3.nest() .key(function(d) { return d.region; }) .key(function(d) { return d.country; }) .entries(csv_data); console.debug(nested_data); alert(JSON.stringify(nested_data)); }); </script> </body> </html>
Modified
http://d3js.org/d3.v2.js
to a secure url
https://d3js.org/d3.v2.js