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

ExprRef as axis title #7500

Closed
patkwee opened this issue May 29, 2021 · 1 comment
Closed

ExprRef as axis title #7500

patkwee opened this issue May 29, 2021 · 1 comment

Comments

@patkwee
Copy link

patkwee commented May 29, 2021

It would be great if an ExprRef is allowed as axis title.

The documentation (https://vega.github.io/vega-lite/docs/axis.html#title) currently states that only a string or null is allowed.

Though, I tried to use a {expr: "my_axis_title_param"} as title and it seems to work. Not sure if this is intended and an undocumented feature.

My use case is to change the axis title during runtime via a parameter instead of changing the spec and therefore rebuilding the whole chart.

@domoritz
Copy link
Member

domoritz commented Jun 3, 2021

I added it to #7264. I have a fix for it and so we should be adding this soon.

@domoritz domoritz closed this as completed Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants