-
Notifications
You must be signed in to change notification settings - Fork 622
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
Boolean axis properties do not respond to expressions #6986
Comments
We specify axes twice because of a limitation in Vega. One of the axes is just for the gridlines and the other is for the rest. See vega/vega#1865 for details. The fact that axes don't respond to signal changes looks like an issue with Vega. @jheer I don't see an issue in the generated Vega. Please return the issue if Vega-Lite is at fault here. Maybe this is a delicate of vega/vega#286. |
Some of the axis parameters simply do not support signal values, as those values are currently needed at compile time (part of the parsing and dataflow graph generation process). The Vega schema should indicate if signals are or are not supported, so I would check there. Any changes to make some of these properties dynamic may be possible, but likely would require some substantial engineering / refactoring effort. |
We should make sure to only support expr for properties that support it then. |
The schema will be updated in #7148 |
Expanding on #6962 none of the Boolean axis properties appear to respond to expressions. Here is a minimal example to illustrate the problem:
Of the 6 Boolean properties, only
grid
has no claim in the schema not to accept expressions (although it would be nice if it could).domain
,labels
,tickExtra
,tickRound
andticks
all allow expressions, but have no effect.Looking at the compiled Vega Spec, it looks like the axes are being specified twice, and only one of them carries all the expressions through as signals (but
tickExtra
andtickRound
are included in both). Perhaps this is part of the problem?Vega specification:
The text was updated successfully, but these errors were encountered: