-
Notifications
You must be signed in to change notification settings - Fork 794
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
How to set a multiline title for an axis or legend? #262
Comments
I don't believe this is allowed currently in Vega-Lite. |
Yep. This is currently not supported in Vega-Lite due to lack of support for this Vega. |
Closing as vega-lite-related. |
Sorry to comment on a closed issue, but could someone clarify how This functionality is pretty essential (in my opinion) and I'm trying to figure out whether a PR to "hack this functionality" in |
"vega-lite related" generally means there is no change you could make to the Altair codebase that would address the issue. |
ah okay. thanks then |
Can we reopen this? Looks like vega-lite will support this but requres passing a string array instead of a string. |
For anyone revisiting this, Vega now supports this multiline functionality. Just pass in a list of strings as the title:
|
@fredthedead If you wanted to edit your original post to include this now-working solution, I'm sure people would appreciate it! |
We do currently cover this for chart subtitles in this doc page https://altair-viz.github.io/user_guide/customization.html#adjusting-the-title, but if anyone wants to add an example to that page with an axis title (or chart label for that matter) that covers two pages, then I would be happy to review a PR. |
Passing a string with '\n' in it doesn't seem to work
The text was updated successfully, but these errors were encountered: