Skip decimal points on y-axis in chartJS

后端 未结 6 1265
说谎
说谎 2020-12-24 00:18

I am using this library to draw charts in my web app. The issue is that I am having decimal points in my y-axis. You can see that in the image below

Is there a way

6条回答
  •  离开以前
    2020-12-24 01:00

    by the latest version this option changed to

    scales: {
      yAxes: [{
        ticks: {
          stepSize: 1,
          beginAtZero: true,
        },
      }],
    },
    

提交回复
热议问题