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

Selecting pie slices in styled mode #6005

Closed
PaulDalek opened this Issue Nov 21, 2016 · 4 comments

Comments

Projects
None yet
6 participants
@PaulDalek
Contributor

PaulDalek commented Nov 21, 2016

Behaviour

Selecting any of the pie slices in styled mode changes its initial color to the color of the first point.

Live demos

http://jsfiddle.net/d_paul/5hdctfhe/

@oysteinmoseng oysteinmoseng added the Bug label Nov 21, 2016

@oysteinmoseng oysteinmoseng added this to the 5.0.4 milestone Nov 21, 2016

@garybrain

This comment has been minimized.

Show comment
Hide comment
@garybrain

garybrain Nov 22, 2016

Hi, as a workaround I disabled the following two CSS entries.

.highcharts-pie-series .highcharts-point-select {
/* fill: inherit;
stroke: inherit; */
}
.highcharts-point-select {
/fill: #cccccc;
stroke: #000000;
/
}

garybrain commented Nov 22, 2016

Hi, as a workaround I disabled the following two CSS entries.

.highcharts-pie-series .highcharts-point-select {
/* fill: inherit;
stroke: inherit; */
}
.highcharts-point-select {
/fill: #cccccc;
stroke: #000000;
/
}

@TorsteinHonsi

This comment has been minimized.

Show comment
Hide comment
@TorsteinHonsi

TorsteinHonsi Nov 25, 2016

Collaborator

Ok, by setting the selected pie color to inherit, the intention was to override the general point select rule, that set the color to gray.

However the fill didn't go back to .highcharts-color-n, but to the general series color.

Any idea of how we can simply disqualify the fill set for .highcharts-point-select?

Collaborator

TorsteinHonsi commented Nov 25, 2016

Ok, by setting the selected pie color to inherit, the intention was to override the general point select rule, that set the color to gray.

However the fill didn't go back to .highcharts-color-n, but to the general series color.

Any idea of how we can simply disqualify the fill set for .highcharts-point-select?

@TorsteinHonsi TorsteinHonsi removed this from the 5.0.5 milestone Nov 29, 2016

@KacperMadej

This comment has been minimized.

Show comment
Hide comment
@KacperMadej

KacperMadej Jul 31, 2017

Contributor

@TorsteinHonsi How about:

(or highcharts-series-pie only for pies)

  • change general point select rule selector to:
    .highcharts-series:not(.highcharts-color-by-point) .highcharts-point-select {

(or highcharts-series-pie only for pies)

Result: http://jsfiddle.net/df74rdgv/

Contributor

KacperMadej commented Jul 31, 2017

@TorsteinHonsi How about:

(or highcharts-series-pie only for pies)

  • change general point select rule selector to:
    .highcharts-series:not(.highcharts-color-by-point) .highcharts-point-select {

(or highcharts-series-pie only for pies)

Result: http://jsfiddle.net/df74rdgv/

@TorsteinHonsi

This comment has been minimized.

Show comment
Hide comment
@TorsteinHonsi

TorsteinHonsi Aug 2, 2017

Collaborator

Yes, that works well! Will you commit the fix?

Collaborator

TorsteinHonsi commented Aug 2, 2017

Yes, that works well! Will you commit the fix?

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