You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been exploring mosaic over the last month and it has been such a nice experience. For me, coming from a mainly python-centric data science workflow, it truly feels like it unlocks new possibilities in interactive data viz.
As I have been trying to create layouts of several plots I often run into the issue of how to make sure that plots that share axis have the exact same domain. When vgplot handles the aggregation it can be hard to know up front what yDomain to provide for example. Is there any way to tell vgplot that two plots should have the same domain and calculate that based on both plots?
I tried to adapt the pan zoom example but if the domains are not provided explicitly it seems like they can differ in the initial render and snap into place only on first pan/zoom interaction.
Here is an example based on the athletes dataset that shows a histogram of the heights on the bottom and the proportion of females for each bin in the line chart above. The xDomain varies slightly as seen to the right (based on the bin width?) even if they have the same bin transform. I provided explicit yDomains but it would be very nice if these could be calculated by vgplot, is that possible somehow?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I have been exploring mosaic over the last month and it has been such a nice experience. For me, coming from a mainly python-centric data science workflow, it truly feels like it unlocks new possibilities in interactive data viz.
As I have been trying to create layouts of several plots I often run into the issue of how to make sure that plots that share axis have the exact same domain. When vgplot handles the aggregation it can be hard to know up front what yDomain to provide for example. Is there any way to tell vgplot that two plots should have the same domain and calculate that based on both plots?
I tried to adapt the pan zoom example but if the domains are not provided explicitly it seems like they can differ in the initial render and snap into place only on first pan/zoom interaction.
Here is an example based on the athletes dataset that shows a histogram of the heights on the bottom and the proportion of females for each bin in the line chart above. The xDomain varies slightly as seen to the right (based on the bin width?) even if they have the same bin transform. I provided explicit yDomains but it would be very nice if these could be calculated by vgplot, is that possible somehow?
Code snippet
Thanks! /Daniel
Beta Was this translation helpful? Give feedback.
All reactions