Chart.js number Y-AXIS label format for many decimal places
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having problems with chart.js Y-axis labels. I have the following data. var data = { labels: ["1","2","3","4","5"], datasets: [ { label: "My First dataset", fillColor: "rgba(220,220,220,0.5)", strokeColor: "rgba(220,220,220,0.8)", highlightFill: "rgba(220,220,220,0.75)", highlightStroke: "rgba(220,220,220,1)", data: [0.15000000000000088,0.15000000000000133,0.15000000000000177,0.15000000000000221,0.15000000000000308] }, ] }; and I get this result. Image of the Graph Result As you can see the labels in the Y-axis are cut after the fifth