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

autosize: fit does not work accurately when combined with axis exprs #9251

Open
fysherman opened this issue Feb 2, 2024 · 0 comments
Open
Labels

Comments

@fysherman
Copy link

I am building a chart with dynamic data and aiming to display axis labels in a way that is appropriate for each scenario. When I create a chart using 'autosize: fit' and combine it with expr in labelAlign, labelAngle, or labelExpr, at a certain width, the chart will have a fitting issue where a portion overflows outside the view. As the example below, a part of the chart, namely the legend, is missing, and the legend becomes visible when the width is set larger. If I directly set values for labelAngle and labelAlign instead of using expr, the chart renders correctly.

vega editor example

width: 620

image

width: 640

image

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

No branches or pull requests

1 participant