-
Notifications
You must be signed in to change notification settings - Fork 26
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
ramp with direct category property is broken #779
Comments
Hi @makella , I don't want to work in "workaround guided" development, but this would be easier to solve if we forced a To summarize for other people, the idea is to change (the behavior of) expressions like I was reluctant to this change, but, knowing that this has been broken for so long and that nobody actually noticed it (we saw this problem by looking into the code for unrelated reasons) makes me think that we should change it. What do you think, @makella ? |
@davidmanzanares yes, totally this is something we had discussed in the past and looking back, maybe we never came to a clear resolution: in a couple of old issues: on slack: These were both before we had talked through the buckets logic. Based on the logic we have there, with this case, for
For example, if someone did:
Now, if we think about Builder logic, for the third option above, we would symbolize the top 10 categories and then everything else with the "other" gray color. Since we have There is definitely a case to not limit the number of categories that we color as many users actually want to "see" all the categories colored in the data. If we go this direction, I should definitely start revisiting the work I had started on reordering the category color schemes. |
This is going to be a problem because it goes in the opposite direction of the alternative implementation of Another option would be to leave |
Ahhh, I just started reading #781 after I had hit comment on this :) Questions:
what exactly does this mean? |
The current limit for
Basically, that each category name will get a random color from the palette. We won't be able to control it in any way, and collisions between category names could exist. |
I think we can go and implement the hash-based solution, and if there is a problem, react to that. |
Fixed by #851 |
@elenatorro and I discovered that expressions like
ramp($category, prism)
are broken sinceramp
is assuming that$category
internal IDs are between0
andnumCategories
and that is only true when there is only one category property on the dataset.Usage of
ramp
withbuckets
ortop
don't show this problem.The text was updated successfully, but these errors were encountered: