react-vis
react-vis copied to clipboard
Remove Floating points from y axis
I have a Time Series plot with Y axis containing counts of alerts. With the given dataSet I am getting the tick values in the plot as [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0] I want it to be [0, 1, 2]
Not in Decimals like [0, 1.0, 2.0].
I tries with tickValues and yType. Not able to achive what I m looking for.
This problem is relevant to me too. Is there any solution?