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

Align legends to the left of the charts #3903

Open
domoritz opened this issue Apr 12, 2024 · 0 comments
Open

Align legends to the left of the charts #3903

domoritz opened this issue Apr 12, 2024 · 0 comments
Labels
feature-request For requesting new features or transforms

Comments

@domoritz
Copy link
Member

When placing a legend at the top of a chart, it aligns with the left of the plotting area/axis but not the chart. This means that it's inconsistent with how titles align.

Open the Chart in the Vega Editor

Screenshot 2024-04-12 at 15 49 25

It would be nice to be able to align the legend with the left side of the chart.

We can at least align the title and the legend by setting "frame": "group". Open the Chart in the Vega Editor

Screenshot 2024-04-12 at 15 51 39

Related issue: #3531

See https://stackoverflow.com/questions/77875580/legend-alignment-in-vega-lite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request For requesting new features or transforms
Projects
None yet
Development

No branches or pull requests

1 participant