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 / Donut charts - Connector lines get missed out on some dense chart areas #7907

Closed
ananth-imagin opened this issue Feb 22, 2018 · 3 comments

Comments

@ananth-imagin
Copy link

Expected behaviour

Connector lines should be visible for all pie / donut segments.

Actual behaviour

Connector lines are not drawn for segments that are too small, existing in between densely populated data segments.

image

Live demo with steps to reproduce

http://jsfiddle.net/FKawc/65/

Product version

6.0.7

Affected browser(s)

Chrome, Firefox, IE, Edge, ... (All browsers).

@pawelfus
Copy link
Contributor

pawelfus commented Feb 23, 2018

Hi @ananth-imagin

Thank you for reporting the issue. This is expected behaviour. If we don't have enough space for the labels then we don't render them. Labels with the lowest values are hidden first - this can be controlled by point.labelrank.

We can increase the distance to make more space for labels: http://jsfiddle.net/BlackLabel/FKawc/67/ - but it depends on the dataset. Or decrease padding around the labels: http://jsfiddle.net/BlackLabel/FKawc/78/

@KacperMadej
Copy link

Additionally: the function responsible for the dataLabels distribution is Highcharts.distribute. You can override it and provide better logic if you have one. Here's a demo with simple modification (JS line 42) that changes size of the labels (when used in calculations):
http://jsfiddle.net/BlackLabel/9f5orgn4/

@ananth-imagin
Copy link
Author

Hi @pawelfus & @KacperMadej ,

Thank you very much for the solutions!
Greatly appreciate your help.

Thanks,
Ananth

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