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

Initially invisible series in maps cannot be displayed by clicking on the legend item. #21044

Open
vazonik opened this issue Apr 22, 2024 · 1 comment

Comments

@vazonik
Copy link
Member

vazonik commented Apr 22, 2024

Expected behaviour

When a series in maps has the visible: false option enabled, it should be possible to enable it by simply clicking on its legend item.

Actual behaviour

When a series has the visible: false option, it cannot be shown by clicking on the corresponding legend item.

Live demo with steps to reproduce

https://jsfiddle.net/BlackLabel/xn7tmjke/

Product version

Highcharts v11.4.1

Workaround

Set visible: false in the load event: https://jsfiddle.net/BlackLabel/yofLe5zw/

@KacperMadej
Copy link

Marking data as dirty before the visibility toggle seems to be a valid workaround: https://jsfiddle.net/BlackLabel/ogr2jpt3/1/

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

No branches or pull requests

3 participants