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 colorAxis and series colors overlapping on resize #4397

Closed
RadValentin opened this issue Jul 16, 2015 · 2 comments
Closed

Highmaps colorAxis and series colors overlapping on resize #4397

RadValentin opened this issue Jul 16, 2015 · 2 comments

Comments

@RadValentin
Copy link

Issue Description

Setting colorAxis for a chart as well as individual colors for each series data will cause the chart to initially render the series color but on resize it will switch to colorAxis colors. Furthermore, hovering over the chart will cause it to revert to the initial colors.

geomap_resize

Notes

  • jsFiddle Demo
  • Reproduces in: Chrome, Firefox (latest)
  • Using Highcharts 4.1.7 and Highmaps 1.1.7
  • In Highmaps v1.0.4 the chart would always render series colors when they were present, disregarding colorAxis
@pawelfus
Copy link
Contributor

Demo on master branch: http://jsfiddle.net/2mss9wj8/4/
I'm curious - what is the expected result? I guess, since points have colors, then colors from colorAxis shouldn't be used. However, in that case detach colorAxis from series: http://jsfiddle.net/2mss9wj8/6/

If this should be the opposite, so colorAxis should have higher priority than color option for a point, then simply remove that color options.

I'm not saying that the above are solutions, just workarounds for a specific cases.

@RadValentin
Copy link
Author

@pawelfus Thanks for the quick reply. You're right, in the end I chose to go with the solution of not having both colorAxis and color options.
Still, it's weird that in a previous version of Highmaps, 1.0.4, this issue didn't happen, point colors had priority.

GoodDD added a commit that referenced this issue Jul 4, 2019
TorsteinHonsi pushed a commit that referenced this issue Aug 14, 2019
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

2 participants