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

Using colorAxis.dataClasses in styled mode #6988

Closed
PaulDalek opened this issue Jul 20, 2017 · 2 comments
Closed

Using colorAxis.dataClasses in styled mode #6988

PaulDalek opened this issue Jul 20, 2017 · 2 comments
Labels

Comments

@PaulDalek
Copy link
Contributor

@PaulDalek PaulDalek commented Jul 20, 2017

Expected behaviour

In styled mode, legend item symbol have the same color as point which fit in a specific value range, determined in colorAxis.dataClasses.

Actual behaviour

All legend item symbols are black.

Live demos

http://jsfiddle.net/unb06fus/ - classic mode
http://jsfiddle.net/snt2j4qw/ - styled mode

@KacperMadej
Copy link
Contributor

@KacperMadej KacperMadej commented Jul 21, 2017

Workaround: set colorAxis.dataClassColor to 'category' and redefine chart colors in CSS if needed.

Demo: http://jsfiddle.net/7vck7Lkm/

@TorsteinHonsi
Copy link
Collaborator

@TorsteinHonsi TorsteinHonsi commented Jul 24, 2017

In accordance with how color options generally work in styled mode, the expected behaviour is that color is ignored and colors should be defined in CSS. See for example how the basic series color option is ignored: http://jsfiddle.net/o4u6oxk4/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants