-
Notifications
You must be signed in to change notification settings - Fork 2
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
Sharing y axis between density chart and used color plots also affects main plot #64
Comments
@edwardchalstrey1 Reopening this (as I guess it was closed automatically as part of #65). |
@edwardchalstrey1 Yeah, so adding a new test for the IMdB vs. Rotten Tomatoes example reveals one problem. In that example, if you remove I feel like there's a lesson to learn from the last few days: we should be working in a more test-driven way. When we discover problems, they should be documented with tests -- either tests which demonstrate that something fails (as in this case), or that record a behaviour baseline that we want to move forward from (so that we can still refactor/redesign safely when fixing the problem). |
Agreed, I'll try to make use of draft PRs as well where appropriate so you can see what changes I'm making |
@edwardchalstrey1 Just to clarify, specifying |
@edwardchalstrey1 I've added some new testing infrastructure which should make it easier to move forward with this issue, #63 and #58. (I'll summarise that separately on Slack.) Re. this particular problem, I haven't managed to make progress -- I wasn't able to find a way to allow y-axis sharing on the subcharts without forcing sharing with the main chart. But you've experimented quite a bit already, so perhaps you'll have more success. I added regression behaviour to the choropleth tests that means they will fail if the One idea I had (mentioned as a task above) is to create a standalone Vega Lite MWE that illustrates the problem. If we manage to create such a thing, we'll have a succinct description of the problem, which we can post to Stack Exchange. If we don't, then we've solved the problem. |
hand-crafted Vega-Lite experiment (either MWE to post to Stack Exchange, or to find a solution)resolve_scale
: experiment withy='independent'
on root chart andy='shared'
on subcharts ❌@meta_hist
requiresencoding.color.bin
to be defined_altair
encoding.color.bin = False
(not the same as undefined)is_defined
helperFor some reason, this code in
ways.py
results in y axis being shared on all three plots - can we respecify so the y axis of the main plot is unaffected?The text was updated successfully, but these errors were encountered: