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

Comments

@sebastianbochan
Copy link
Contributor

commented Jul 7, 2015

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

This comment has been minimized.

Copy link

commented Jul 7, 2015

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

@sebastianbochan

This comment has been minimized.

Copy link
Contributor Author

commented Jul 15, 2015

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

@m1neral

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Contributor

commented Jul 16, 2015

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

This comment has been minimized.

Copy link

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 pawelfus added the Type: Bug label Jul 16, 2015

@pawelfus

This comment has been minimized.

Copy link
Contributor

commented Jul 16, 2015

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

@pawelfus pawelfus self-assigned this Jul 16, 2015

@m1neral

This comment has been minimized.

Copy link

commented Jul 16, 2015

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

@jpla2005

This comment has been minimized.

Copy link

commented Jul 21, 2015

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

@pawelfus

This comment has been minimized.

Copy link
Contributor

commented Jul 22, 2015

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

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

@pawelfus

This comment has been minimized.

Copy link
Contributor

commented Jul 22, 2015

Temporary workaround for 3D is do disable the animation:

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

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

@TorsteinHonsi

This comment has been minimized.

Copy link
Collaborator

commented Aug 18, 2015

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/.

TorsteinHonsi added a commit that referenced this issue Aug 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.