我对雷达有问题。我无法得到正确的形状。
var data = [
[
{axis:"1",value:0.85},
{axis:"2",value:0.75},
{axis:"3",value:0.75},
{axis:"4",value:0.9},
{axis:"5",value:0.4},
{axis:"6",value:0.4}
]
];
var color = d3.scale.ordinal();
var radarChartOptions = {
w: width,
h: height,
margin: margin,
maxValue: 1,
levels: 10,
roundStrokes: true,
color: color
};
RadarChart(".radarChart", data, radarChartOptions);
现在我有类似的东西
https://codepen.io/raju_wk/pen/RwWBpJy
我想要这样的东西