-
Notifications
You must be signed in to change notification settings - Fork 795
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
Sample417 #2509
Sample417 #2509
Conversation
(I'm happy to move these comments and questions somewhere else like one of the GitHub Issues or the Slack channel, if that's a more appropriate place. I'm also happy to close this Pull Request if that's recommended.) I tried following the Testing your Changes instructions but all I received after running
The error messages from the GitHub checks here are more helpful. Here is one minimal example of something that seems to go wrong.
On the other hand, To find the correct base class for OpacityValue (or anything else), the program traces through references in the vega-lite schema starting at FacetedEncoding->properties->opacity, and continuing until it reaches a definition that contains The way the code is written, only one base class for OpacityValue will ever be found. Does that seem to be a mistake? I could imagine finding multiple opacity base classes that match this condition of having Thanks for any suggestions! |
Yes, there is a fundamental issue with Altair's design that makes it difficult to suppot both |
Thank you for the comments @jakevdp I'll close this pull request. Do you think the "parameters" which were introduced in Vega-Lite 5 will introduce a whole different set of issues? I haven't read about parameters at all and don't have a sense for whether they should be considered at the same time as |
Yeah, I imagine the shift from selections to parameters will take some thinking, especially if we want to maintain any sort of backward compatibility with the API of previous versions. I've really wanted to address all this and push for the upgrade, I've just not been at a place in my life where I can take on that project. |
Thanks again @jakevdp for the feedback. I feel like I have a better sense for the scope of the project to upgrade. I will maybe post a little later in this GitHub issue, to ask the general community a few questions. But if that's not an appropriate place or if there's somewhere better, I'm very open to that advice. |
Hi, based on https://github.com/mattijn/altair/tree/vl_v5 I tried to make a version that worked with Vega-Lite schema 4.17.0. I did very little other than replace some of the old code which assumed everything was either a "field" or "value", to allow for the possibility of a "datum". Much of the 'mixins.py' and the high-level Altair API are quite mysterious to me, so I didn't do anything intelligent there.
I assume there are some gaps in what I did, but I'm happy to keep working on it if I receive some pointers on what needs to be improved. Thanks for looking at it and I hope some of it might be helpful.
Here are two examples of the update. The pie chart example is mostly copied from mattijn's comment. So a few new things work, although I see from the GitHub checks that other things became broken. (I added a comment below.)