因此,我一直在研究了很多关于这一点,并没有找到一个解决方案,我想改变雷达线的颜色,如下所示:
有没有办法做到这一点?
下面是我目前的代码:
new Chart(document.getElementById("result_chart"), {
"type": "radar",
"data": {
"labels": ["Idea", "Timing", "Skills", "Concept", "Market Plan", "MVP", "Revenue Potential", "Competition", "Team", "BMC", "Financial Model"],
"datasets": [{
"label": "Your Results",
"data": [
10,
20,
30,
40,
50,
60,
70,
80,
90,
100,
110
],
"fill": true,
"backgroundColor": "rgba(165, 211, 164, 0.2)",
"borderColor": "rgb(165, 211, 164)",
"pointBackgroundColor": "rgb(165, 211, 164)",
"pointBorderColor": "#fff",
"pointHoverBackgroundColor": "#fff",
"pointHoverBorderColor": "rgb(255, 99, 132)"
}]
},
"options": {
"elements": {
"line": {
"tension": 0,
"borderWidth": 3
}
}
}
});
3条答案
按热度按时间nwwlzxa71#
您可以通过将以下属性添加到图表的比例规范中来轻松实现这一点:
视觉输出将是您要求的输出
希望这能有所帮助!:)
nx7onnlm2#
磁带库的配置似乎已更改,现在应如下所示:
ldfqzlk83#