makrancziz
Posts: 8
Joined: Thu Jul 02, 2020 2:40 pm

ColorAxis not scaling

Hello,

We've spotted a problem which happens when a map is quite small:
https://jsfiddle.net/h92o8bdv/1/

1. The colorAxis doesn't scale down to the available height (the tick at the bottom isn't visible)
2. The 0 on the top (the first tick) is cut in half
3. An 1/1 and two arrows appear (up/down) under the colorAxis, but they don't seem to do anything

Could you please look into it, or recommend a config that'd solve this? (couldn't find anything in the docs)
Thank you!
mateuszkornecki
Posts: 1222
Joined: Mon Oct 28, 2019 10:29 am

Re: ColorAxis not scaling

Hello,

Thanks for contacting us with your question!

All the problems you mentioned are happening because of those arrows (legend.navigation). Legend navigation might be useful when the legend that contains multiple series is overflown. It seems that it is not helpful in your case so you could just disable it by setting the legend.navigation.enabled to false. After that everything should work as expected.

API references:
https://api.highcharts.com/highcharts/legend.navigation

Live demo:
https://jsfiddle.net/BlackLabel/r3kz0bt5/

Let me know if you have any further questions!

Best regards.
Mateusz Kornecki
Highcharts Developer
makrancziz
Posts: 8
Joined: Thu Jul 02, 2020 2:40 pm

Re: ColorAxis not scaling

Hi!

Yeah, this works great for the arrows!

However, for the scaling problem, this isn't really a solution (the first/top tick isn't visible).
Is there anything with which we could control that?

Thank you!
mateuszkornecki
Posts: 1222
Joined: Mon Oct 28, 2019 10:29 am

Re: ColorAxis not scaling

That's not only the first tick, but the part of the legend (including the tick) is also cropped because there is no enough space to render it. I can agree with you that it should be scaled down, that's a great idea for an enhancement. If you want us to add it in the future release of the highcharts feel free to post a feature request on our GitHub page, here: https://github.com/highcharts/highcharts/issues

Regards.
Mateusz Kornecki
Highcharts Developer
makrancziz
Posts: 8
Joined: Thu Jul 02, 2020 2:40 pm

Re: ColorAxis not scaling

Thank you, Mateusz!

Yeah, it's not just the first tick, but a larger chunk of the bar.

Personally, I don't think that this a major issue but if in the end we'll need a resolution, then yeah, I'll post the feature request.

Thank you!
mateuszkornecki
Posts: 1222
Joined: Mon Oct 28, 2019 10:29 am

Re: ColorAxis not scaling

You're welcome! In case of any further questions, feel free to contact us again!

Regards.
Mateusz Kornecki
Highcharts Developer

Return to “Highcharts Maps”