-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix elasticY with evadeDomainFilter #1367
Conversation
Thank you for all these excellent contributions, and sorry for my slow response. I was in a car accident last week and broke my collarbone, so I haven't been able to spend much time at the computer. I am very excited to review your three PRs when I'm able, but it won't be for at least another week. |
Oh my, so sorry to hear that. Hope you have a quick recovery! |
004647d
to
c221d15
Compare
Rebased onto I'll leave the 2.x version at da3c437...NewBoCo:elasticY-evadeDomainFilter-2.x in case anyone needs it. |
Ok, I was about to look at Thanks @dahlbyk, this makes a lot of sense. I added a simple test, too - turns out we already covered this situation but didn't test it. Let's fix those line endings too. I'm dropping the fix to This will go into 3.0 alpha 7. |
To clarify what I'm trying to fix, with With
|
Thanks for the demo! That's very helpful for documenting the change going forward. Yesterday when I looked at this PR again, I understood it, and this fix is already on the 3.0 branch along with a test (linked above). I haven't tagged it yet. Hoping to include it in alpha 7 with part of #1402 today. |
Fixes that
evadeDomainFilter
, introduced by 77d22ba for #949, doesn't work withelasticY(true)
. The fix requires access to the domain-filtered values separate from all values needed to render the chart.Bonus fix:
x().domain()
transitions from[0, _]
to[x, _]
, as in the bar transitions demo with "right" selected, will nowrescale()
correctly.