rismaylov
Posts: 1
Joined: Tue Oct 06, 2020 10:41 am

Map color axis: how to remove float numbers?

Hi. I need only integers on my color axis without any floating digits. How can I achieve that?
Image
(It should not allow values like 2.5 and 7.5. Only integers should be allowed).
My data 100% contains only integer values.
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Map color axis: how to remove float numbers?

Hello rismaylov,

Welcome to our forum and thanks for contacting us with your question!

The most popular way to modify values, that are shown on any axis is formatter function. But we can also use min, max, or tickPositions properties. In your case, I would use tickPositions property to strictly set what values will be shown on this axis.

API references:
https://api.highcharts.com/highmaps/col ... kPositions <- tickPositions
https://api.highcharts.com/highmaps/col ... .formatter
https://api.highcharts.com/highmaps/colorAxis.min
https://api.highcharts.com/highmaps/colorAxis.max

Let me know if that was what you were looking for!
Best regards.
Dominik Chudy
Highcharts Developer

Return to “Highcharts Maps”