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

Hidden class is missing when useHTML in legend #6342

Closed
sebastianbochan opened this issue Feb 6, 2017 · 2 comments
Closed

Hidden class is missing when useHTML in legend #6342

sebastianbochan opened this issue Feb 6, 2017 · 2 comments
Assignees
Labels

Comments

@sebastianbochan
Copy link
Contributor

@sebastianbochan sebastianbochan commented Feb 6, 2017

Expected behaviour

.highcharts-legend-item-hidden should be applied

Actual behaviour

Hidden class (highcharts-legend-item-hidden) is missing when useHTML in legend

Live demo with steps to reproduce

Demo:

Affected browser(s)

All

@sebastianbochan
Copy link
Contributor Author

@sebastianbochan sebastianbochan commented Jun 27, 2017

Internal note
It looks like in the colorizeItem function, addClass / attr() methods cannot be used for div element. We should use setAttribute on item.legendGroup.div element.

@TorsteinHonsi do you have any better suggestion?

@sebastianbochan sebastianbochan self-assigned this Jun 27, 2017
@TorsteinHonsi
Copy link
Collaborator

@TorsteinHonsi TorsteinHonsi commented Jul 17, 2017

Demo with the fix applied: http://jsfiddle.net/s8m9t47s/1/
(Note: styled mode doesn't currently work with github.highcharts.com).

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