Changing the number format for labels in either X or Y axis of chart

0

Hello,

How do I change the format of numbers or intervals of either x axis or y axis?  I want to show only integers on the axis and not the decimals. I tried changing xaxis.allowdecimals and yaxisallowdecimals to false. But I have no luck.

Can you please assist?

avernekar's picture
Joined: Mar 1 2018 - 11:33am
Last seen: 1 year 2 months ago

1 Answer:

0

If its high chart, you can use labels.format.  Example here:

https://api.highcharts.com/highcharts/yAxis.labels.format

vchiem's picture
7030
Joined: May 1 2017 - 5:33pm
Last seen: 7 hours 48 min ago
Feedback
randomness