All examples By author By category About

guillaume-lesaine

radar chart for nested data

this version loads nested data from data.json:

index.html

//Load the data and Call function to draw the Radar chart
d3.json("data.json", function(error, data){
	RadarChart(".radarChart", data, radarChartOptions);
});

then, it converts the nested data into an array of values arrays:

radarChart.js

// convert the nested data passed in
// into an array of values arrays
data = data.map(function(d) { return d.values })

an iteration on the bl.ock Radar Chart Redesign created by @nbremer

forked from micahstubbs's block: radar chart for nested data