Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 = [
                	  [//iPhone
                	    { "axis": "SouthWest", "value": 0.22 },
                	    { "axis": "SouthWest", "value": 0.28 },
                	    { "axis": "West", "value": 0.29 },

                	  ]];


I am passing like
JavaScript
    [{ "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
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900