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 slice does not display properly when visibility changes #8428

Closed
whawker opened this Issue Jun 5, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@whawker

whawker commented Jun 5, 2018

Expected behaviour

Calling setData on Pie chart series, changing the visible property on one of the Pie slices.
Previously hidden slice is then displayed.

Actual behaviour

Slice is loaded, and takes up space, but has no background colour.

Live demo with steps to reproduce

https://jsfiddle.net/hn8tgerq/
Then click on "Show Chrome Usage" button

Product version

Highcharts 6.1.0

Affected browser(s)

Chrome latest, Firefox latest, Safari latest (assume all)

@sebastianbochan

This comment has been minimized.

Contributor

sebastianbochan commented Jun 6, 2018

Hi @whawker,
Thank you for reporting.

Simplified demo:

Workaround
Call setData with empty array and then with requested points.

The disadvantage is missing animation.

@sebastianbochan sebastianbochan added the Bug label Jun 6, 2018

@TorsteinHonsi TorsteinHonsi self-assigned this Jun 8, 2018

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