I have implemented graphs using Chart.js and zoom feature using chartjs-plugin-zoom which works fine. However, while scrolling the y-axes is giving a large range of decimal points which is resulting in the values being out of viewpoint. How do I avoid the decimal points?
chartjs-plugin-zoom code:
plugins: {
zoom: {
pan: {
enabled: true,
},
zoom: {
wheel: {
enabled: true,
speed: .01
},
pinch: {
enabled: true
},
mode: 'xy',
}
},
},