-
Notifications
You must be signed in to change notification settings - Fork 629
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
Stacking with size channel #7390
Comments
Great idea. I think we should apply stacking to sized circles as well. Here is the simplest example I could come up with. Open the Chart in the Vega Editor Would you want to take a stab at a pull request? |
Thank you for the feedback! Glad to see it's welcome. |
I talked with @domoritz more about this. I don't think we should support this as it was intentionally not supported. Even if the circle's area are properly stacked as you suggested, people won't able to effectively compare the area between the inner circles and the outside stroked circles (for the stacked ones). It'd be better to do a bar chart with less height, or consider using pies (which is basically stacking angles of arc marks). |
Thank you for spending time on this and I must say that the area comparison argument does make sense. I am fine with my workaround for my need, I should consider other options in the future. Yet, I am not sure the status quo is a good idea either. I would have at least expected a warning somewhere, no? |
I could see an argument for a warning, but this should be rare enough so I don't plan to fix this. If you strongly feel like a warning, feel free to submit a PR. :) |
I am not sure whether this is a bug report or a feature request, but I'll show the logic here.
I wrote the code with Altair but will try to share the links to the vega-lite editor as well.
So I first generate a list of temporal events, and shared the resulting json on gist.
I am trying to get a stacked view of different types of events, first the more natural view with stacked
bars
, (link):The output is correctly stacked:

Now since my list of days is much longer, I want to encode things a bit differently, with "bubbles" of different size. So the
y
channel would become thesize
channel (link):This could look correct, but actually, it appears that the sizes are not stacked and that some bubbles may come in front of others. I wrote the following workaround, generating stacks manually, playing with the
order
channel, and with a stack ordering consistent with my wishes (is it related to #1734 ?) but in the end I am not sure whether the process could be facilitate so as to get the following output ⬇️ (with (link)) for the previous code snippet ⬆️Thank you for the support!
The text was updated successfully, but these errors were encountered: