Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highmaps Legend Not Properly Showing 0 Values and rescaling on zoom #3969

Closed
imasonaz opened this issue Mar 11, 2015 · 4 comments
Closed

Highmaps Legend Not Properly Showing 0 Values and rescaling on zoom #3969

imasonaz opened this issue Mar 11, 2015 · 4 comments

Comments

@imasonaz
Copy link

I found this issue in the example graphs for US states:
http://jsfiddle.net/gh/get/jquery/1.11.0/highslide-software/highcharts.com/tree/master/samples/mapdata/countries/us/us-al-all

It seems that the legend doesn't display zero values, even though they are given in the data series. They will display if you remove the colorAxis min, but it seems that if a number lands on the min, it should still be displayed. If you change the min to 1, it will still show it on the legend.

Also, if you zoom in on the map, it slides the location of outer 2 labels on the legend inward, making them incorrect in their placement. Once you zoom back out to normal, they slide back outward again.

I've attached photos for both issues:

0 data
zoomed

@ghost
Copy link

ghost commented Mar 11, 2015

For the first part of your question:
What do you mean with 'does not display 0 values' ? The name of Bibb does not appear due to an algorithm that prevents label collision (just like Chilton is not diplayed). And it looks like not being filled because the color at that point is #EFEFEE so almost white. If you set minColor: '#FF00FF'you will what I mean.

@imasonaz
Copy link
Author

I mean that if you hover on any county except one that have a '0' value (not color) it shows up on the legend, at the bottom, with an arrow. If you hover over a '0' county, it won't be referenced on the scale at the bottom.

@wolfsbane90
Copy link

wolfsbane90 commented Jul 20, 2017

@TorsteinHonsi Is there a way to fix the count of partitions in the legend? The issue above has 3 partitions and i want to fix it to 3 partitions only. I tried searching the api website but couldn't find any way to do so.

@KacperMadej
Copy link

@wolfsbane90 For technical support please use other support channels as we are trying to keep github for bugs. https://www.highcharts.com/support

To adjust number of ticks on color axis please use ticks related options for colorAxis, like colorAxis.tickPositioner.
Demo: http://jsfiddle.net/hz7fgwmt/

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants