且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Chartjs无法使用JSP正确显示图表

更新时间:2023-11-17 23:52:28

问题是数据集中只有一个对象. Chart.js将编号最小的对象设置为y轴上的0.我面临着同样的问题,但是我还没有找到解决方案. Chart.js似乎是一个常见问题 https://github.com/nnnick/Chart.js/issues/252

The problem is that you only have one object in your dataset. Chart.js sets the object with the lowest number to 0 on the y-axis. I'm facing the same problem but I havent found a solution yet. It seems to be a common problem with Chart.js https://github.com/nnnick/Chart.js/issues/252

尝试使用硬编码的秤.