I building a d3JS radar chart based on this example
Radar Chart Redesign - bl.ocks.org[
^]
It clearly shows 3d array data is passed into it,
this how it expects:
var datas = [
[
{ "axis": "SouthWest", "value": 0.22 },
{ "axis": "SouthWest", "value": 0.28 },
{ "axis": "West", "value": 0.29 },
]];
I am passing like
[{ "axis":"SouthWest", "value": 0.22 },
{ "axis": "SouthWest", "value": 0.28 },
{ "axis": "West", "value": 0.29 }]
I found there is somethig needs to be changed in this part of Radarchart.js its code
var maxValue = Math.max(cfg.maxValue, d3.max(data, function(i){return d3.max(i.map(function(o){return o.value;}))}));
I am bit confused how will I do looping here, an if do so it picks the max value only
Any ideas?
What I have tried:
What I have tried I described in the problem