-
Notifications
You must be signed in to change notification settings - Fork 796
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
Parameter.empty
not preserved with &
, |
, ~
operators
#3598
Comments
28 tasks
This is unrelated to both All of these
altair/altair/vegalite/v5/api.py Lines 391 to 421 in 62cd377
This should be preserved for |
dangotbanned
changed the title
Incorrect conversion to VL of
Jan 3, 2025
empty
when using parameter compositionsParameter.empty
not preserved with &
, |
, ~
operators
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
The following code works as expected:
Open the Chart in the Vega Editor
However, when changing the fill condition to include a parameter composition:
The value
empty=False
is no longer respected for that encoding channel:Open the Chart in the Vega Editor
In the VL spec you can see that this happens because Altair converts the parameter composition into the following VL:
What would you like to happen instead?
The correct conversion to VL would look like this:
Not sure how long this has been present, but as I show above it is not related to the resent introduction of
when
since it also happens withcondition
.Minimal Repro
Composition operators only preserve
Parameter.name
Which version of Altair are you using?
5.4.1
5.6.0dev
(17baaa2)The text was updated successfully, but these errors were encountered: