-
Notifications
You must be signed in to change notification settings - Fork 322
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
Hiding or showing the legend doesn't adjust the chart to the available dimensions #25
Comments
Also, the documentation for the legend.disabled property states:
I read this as that setting However, I'm not finding this behavior is true. None of the items that I've tried setting |
Solved in 4.0.0-beta.28 (changelog). |
Should hiding and showing a legend cause the chart to reposition to occupy the space the legend was using? If so, it's not working properly. It does work if I use |
Hm, that's a functional question. Should toggling item visibility also remove it from the layout tree? I tend to think it should not. Sort of like While, |
For me, I would expect I certainly would expect I would recommend that the documentation makes it very clear that the Anyway, based on expectation, things seem to be working correctly now. |
Gotcha. Makes sense. However, in SVG CSS works a lot differently than in HTML. And we - being SVG charts - are operating under SVG defaults. In any case, we will discuss if this one more time. Thanks! |
hide, show and setVisibility methods don't re-position or resize the chart.
https://codepen.io/team/amcharts/pen/e2b0557b22dd819159a5ff5dc82d255d/
The text was updated successfully, but these errors were encountered: