付属のexample風に書くと以下のとおり。
//radar Chart sample data and options
myExampleData.radarChartData = [{
data : [[0, 4],
[1, 6],
[2, 8],
[3, 10],
[4, 9]],
label : "First"
}, {
data : [[0, 8],
[1, 7],
[2, 2],
[3, 3],
[4, 4]],
label : "Second"
}];
myExampleData.radarChartTicks = function() {
var ticks = [
[0, "Sev 1"],
[1, "Sev 2"],
[2, "Sev 3"],
[3, "Sev 4"],
[4, "Sev 5"],
];
return ticks;
};
myExampleData.radarTicks = myExampleData.radarChartTicks();
myExampleData.radarChartOptions = {
HtmlText : false,
grid : {
circular : true,
minorhorizontalLines : true
},
xaxis : {
ticks : myExampleData.radarTicks
},
yaxis : {
min : 0,
max : 10,
minorTickFreq : 2
},
radar : {
show : true
},
legend : {
position : "se",
backgroundColor : "#D2E8FF"
}
};