-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add categorize operation #49
Comments
@alexsb To visually show the category assignment, should we encode the new category as mark type or mark color (preference to mark type if available)? |
Hmm, that's hard, no? It could already use either. I think there are two ways:
|
It’s easy to determine if mark/color is encoded or just has fixed value. Vegalite has inbuilt functions for this. We can use that and if mark/color has fixed value we can use that to encode, else show a warning and print out the column name, so they can use it if they like to update Altair code and use it to encode |
Sounds like a plan |
Currently,
aggregate
adds a new column called__aggregate
to attach an aggregate name to each row. We should have an explicit Categorize operation that lets us add a__cateogry
column that can be named.Only one category for the CHI prototype, but ideally should allow adding any number of category columns.
The text was updated successfully, but these errors were encountered: