react-vis icon indicating copy to clipboard operation
react-vis copied to clipboard

Remove Floating points from y axis

Open krushanu opened this issue 5 years ago • 1 comments

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.

krushanu avatar Dec 12 '19 11:12 krushanu

This problem is relevant to me too. Is there any solution?

akbarkz avatar Apr 14 '21 14:04 akbarkz