雷达图,始终以最小点为基点

时间:2019-06-14 04:05:33

标签: chart.js

我使用了雷达图 只有一个数据,但是始终将最小点用作基点,如何将其更改为0作为基点?

我的代码,“ 2”被视为图表上的最小值...

{
    backgroundColor: "rgba(179,181,198,0.2)",
    borderColor: "rgba(179,181,198,1)",
    pointBackgroundColor: "rgba(179,181,198,1)",
    pointBorderColor: "#fff",
    pointHoverBackgroundColor: "#fff",
    pointHoverBorderColor: "rgba(179,181,198,1)",
    data: [5, 5, 3, 2, 4, 5]

},

https://user-images.githubusercontent.com/51694409/59250433-d54bbf80-8c59-11e9-909b-6d1aa23bd73c.jpg

{
    backgroundColor: "rgba(179,181,198,0.2)",
    borderColor: "rgba(179,181,198,1)",
    pointBackgroundColor: "rgba(179,181,198,1)",
    pointBorderColor: "#fff",
    pointHoverBackgroundColor: "#fff",
    pointHoverBorderColor: "rgba(179,181,198,1)",
    data: [5, 5, 3, 2, 4, 5]

},

0 个答案:

没有答案