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

Legend with layout 'proximate' issues with enabling/disabling #19078

Closed
kamil-musialowski opened this issue Jun 1, 2023 · 1 comment · Fixed by #19153
Closed

Legend with layout 'proximate' issues with enabling/disabling #19078

kamil-musialowski opened this issue Jun 1, 2023 · 1 comment · Fixed by #19153

Comments

@kamil-musialowski
Copy link
Contributor

Actual behaviour

Legend initially enabled - disabling it through update throws error to the console
Legend initially disabled - enabling it positions all of the legend items in the same place

Live demo with steps to reproduce

Change the initial value of legend.enabled and enable/disable it. Watch the console and legend layout.
https://jsfiddle.net/BlackLabel/jkxbwsep/

Product version

Highcharts v11.0.1 (latest)

@kamil-musialowski
Copy link
Contributor Author

If the legend is initially enabled, here is the possible workaround to use to avoid throwing errors to the console:

While disabling the legend set the layout: 'horizontal', and enabled: false.
While enabling the legend set the layout: 'proximate', and enabled: true.

Demo: https://jsfiddle.net/BlackLabel/104vy83w/

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

Successfully merging a pull request may close this issue.

3 participants