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

Unable to set connectorColor on point level #8864

Closed
ejubkadric94 opened this issue Aug 30, 2018 · 2 comments

Comments

@ejubkadric94
Copy link

commented Aug 30, 2018

I need to set the connectorColor to be different for different pie slices. Currently it seems that it is only possible to set it on series level, and if done so, all points will have the same color of connector line.
Is there some workaround for this, to make it work on point(slice) level?
Thanks

Live demo with steps to reproduce

http://jsfiddle.net/9k0endv5/

Product version

6.1.1

@KacperMadej

This comment has been minimized.

Copy link
Contributor

commented Aug 31, 2018

Hi @ejubkadric94

Thank you for reporting about the enhancement idea - next time please use userVoice to suggest new ideas or features. The most popular ideas are getting implemented. https://highcharts.uservoice.com/forums/55896-general

As a workaround:

use the code in the demo below:
http://jsfiddle.net/BlackLabel/31shq4k8/

In short - changed connector stroke to:

              connector.attr({
                'stroke-width': connectorWidth,
                'stroke': (
                	point.options.dataLabels && point.options.dataLabels.connectorColor ||
                  options.connectorColor ||
                  point.color ||
                  '#666666'
                )
              });
@KacperMadej

This comment has been minimized.

Copy link
Contributor

commented Sep 3, 2018

Let's keep this open until it's implemented or reported on userVoice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.