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

[BUG] VIsuals do not resize after hiding legend #9143

Open
d-rowe opened this issue Jan 2, 2025 · 2 comments
Open

[BUG] VIsuals do not resize after hiding legend #9143

d-rowe opened this issue Jan 2, 2025 · 2 comments
Labels
bug Something isn't working untriaged

Comments

@d-rowe
Copy link
Member

d-rowe commented Jan 2, 2025

Screen.Recording.2025-01-02.at.3.07.14.PM.mov

When hiding legends in visuals, the visuals are not resizing to the full size of their container. They require a dashboard level refresh to fill the gap left by the legend.

To Reproduce
Steps to reproduce the behavior:

  1. Create a visual with a legend (right legend in my repro)
  2. Click on the legend toggle at the bottom left of the visual
  3. Notice empty space where the legend was prior to hiding.

Expected behavior
I'd expect hiding the legend to trigger a resize of the chart to fill the available space.

Screenshots
https://github.com/user-attachments/assets/7766f8e8-3329-47de-8a21-bba5c29c8cb6

Host/Environment (please complete the following information):

  • OS: MacOS 14.7.1
  • Browser and version: Chrome 131
@wanglam
Copy link
Contributor

wanglam commented Jan 10, 2025

Hi @d-rowe , I raised a PR to address this issue. Could you help me take a look and test in your local environment if this issue still exists?

@d-rowe
Copy link
Member Author

d-rowe commented Jan 10, 2025

Thanks @wanglam. Taking a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

2 participants