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

Pie chart - drilldown - incorrect color after click #4359

Closed
sebastianbochan opened this issue Jul 7, 2015 · 11 comments
Closed

Pie chart - drilldown - incorrect color after click #4359

sebastianbochan opened this issue Jul 7, 2015 · 11 comments
Assignees

Comments

@sebastianbochan
Copy link
Contributor

Steps to reproduce:

  1. Example: http://jsfiddle.net/jbs01j7k/1/
  2. Click on dark green slice
  3. Click on light green slice
  4. As a result light green is replaced with dark green
@m1neral
Copy link

m1neral commented Jul 7, 2015

Not only drilldown, I have this bug in simple pie chart with costum color palette.

@sebastianbochan
Copy link
Contributor Author

Workaround: set for drilldown series color: null, see: http://jsfiddle.net/jbs01j7k/5/

@m1neral
Copy link

m1neral commented Jul 15, 2015

@sebastianbochan I have this problem not in a drilldown, drilldown as live example, which I found.
http://forum.highcharts.com/highcharts-usage/crop-lighting-of-piechart-serie-t33310/
I think a bug deeper, necessary research the use of custom palettes.

@pawelfus
Copy link
Contributor

I have found out that issue is only in drilldown.js module. Do you have demo without drilldown? Or could you setup one, so we will fix it once for good?

@m1neral
Copy link

m1neral commented Jul 16, 2015

@sebastianbochan @pawelfus Thank you! I solved the problem - you led me to the right idea - in my case was override colors, we use one configuration of colors for all charts and series.

@pawelfus
Copy link
Contributor

So, could you confirm that issue is only for drilldown module?

@pawelfus pawelfus self-assigned this Jul 16, 2015
@m1neral
Copy link

m1neral commented Jul 16, 2015

Yes, I confirm. In my case was like this: http://jsfiddle.net/8QufV/1095/

@jpla2005
Copy link

Using color: null doesn't work for 3D charts. Any suggestion?

@pawelfus
Copy link
Contributor

Demo: http://jsfiddle.net/at78s3eu/

Problem is that 3D arc animates only shape, not the color.

@pawelfus
Copy link
Contributor

Temporary workaround for 3D is do disable the animation:

Highcharts.seriesTypes.pie.prototype.animateDrilldown = function() {};

Demo: http://jsfiddle.net/at78s3eu/1/

@TorsteinHonsi
Copy link
Collaborator

The fix causes a regression when drilling from a series with colorByPoint: true to one without colorByPoint. In this fiddle, the fix causes color change on the drilled series.

The base issue is not with drilldown, but it is that the color option trumps colorByPoint on selected slices: http://jsfiddle.net/highcharts/8qc69vLc/1/.

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

No branches or pull requests

5 participants