-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Failed to parse Vega-lite selection using Altair #5133
Comments
@philippjfr Thanks for the fix but it is still not working because you didn't delete old code in the current commit. /panel/pane/vega.py
|
🤦 Thanks for reporting back, could you take a look what I'm doing wrong in my test: https://github.com/holoviz/panel/blob/main/panel/tests/ui/pane/test_vega.py#L120 |
Also you're in luck that we're likely releasing Panel 1.2 by tomorrow or Monday. |
Thanks for the luck! |
I closed this issue #5103 because I don't want to reprocess random indexes given by Vega-lite. Instead, I specified
fields
option to avoid those random indexes.Anyway, what I wanted to do was getting keys from Altair's selection in a chart that uses
transform_aggregate
.To do that,
I had to specify
fields
option when creating Altair's selection because without usingfields
option, you will get random indexes created by Vega related javascripts.Also, I had to modify two files in the current Panel source because of some parsing errors:
/panel/models/vega.ts
/panel/pane/vega.py
Versions
panel 1.1.0
altair 5.0.1
Example Panel Application that uses
transform_aggregate
Please see I specified
fields
option this time:multi_bar_ref = alt.selection_point(fields=['Species'], name='multi_bar_ref')
Files modified:
/panel/models/vega.ts
When I specify
fields
it doesn't have_vgsid_
./panel/pane/vega.py
_get_type
was givinginterval
although my selection waspoint
The text was updated successfully, but these errors were encountered: