Chaitwo
Posts: 10
Joined: Thu Jan 26, 2023 6:56 pm

Formatter in axis labels not displaying labels for huge data

Hello,

I have used the same code with in formatter for 2 different data inputs and it is working as intended for one and not working for the other.

working JS Fiddle: https://jsfiddle.net/Chaitwo/nfxrL7ka/

not working JS Fiddle: https://jsfiddle.net/Chaitwo/rnh7jc2s/

I really appreciate any help you can provide.
Regards,
Chaitwo
User avatar
dawid.d
Posts: 807
Joined: Thu Oct 06, 2022 11:31 am

Re: Formatter in axis labels not displaying labels for huge data

Hello,

Thanks for contacting us with your question!

This is because the formatter doesn't get called for every point. To change this you can set the label step to 1 as in the demo below.

Demo: https://jsfiddle.net/BlackLabel/hm0awxv7/

Let me know if that is what you were looking for!
Best regards
Dawid Draguła
Highcharts Developer
Chaitwo
Posts: 10
Joined: Thu Jan 26, 2023 6:56 pm

Re: Formatter in axis labels not displaying labels for huge data

Thanks a ton, Dawid. This is what I am looking for. :)
Regards,
Chaitwo
User avatar
dawid.d
Posts: 807
Joined: Thu Oct 06, 2022 11:31 am

Re: Formatter in axis labels not displaying labels for huge data

You're welcome!

In case of any further questions, feel free to contact us again.
Regards!
Dawid Draguła
Highcharts Developer

Return to “Highcharts Usage”