gpt4 book ai didi

javascript - 在 Chart.js 中设置雷达(蜘蛛)图表版本 2.x (2.4.0) 步骤(间隔)

转载 作者:太空宇宙 更新时间:2023-11-04 16:06:13 24 4
gpt4 key购买 nike

我已经搜索过设置步数值,但没有得到答案。如果有人知道请分享您的步骤想法:

按以下方式工作:

0
0.5
1
1.5
.
.
5

预期:

0
1
2
3
4
5

脚本:

scale: {
ticks: {
beginAtZero: true,
max: 5,
steps : 1//Not working
}
}

提前致谢。

最佳答案

非常抱歉,小事终于让我得到了答案:

scale: {
ticks: {
beginAtZero: true,
max: 5,
stepSize: 1 //working Now
}
}

关于javascript - 在 Chart.js 中设置雷达(蜘蛛)图表版本 2.x (2.4.0) 步骤(间隔),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41850386/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com