Skip decimal points on y-axis in chartJS

后端 未结 6 1266
说谎
说谎 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 00:46

    You can yaxis optopn;

    decimalsInFloat: Number

    Number of fractions to display when there are floating values in y-axis. Note: If you have defined a custom formatter function in yaxis.labels.formatter, this won’t have any effect.

提交回复
热议问题