-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Trying matching and scaling #5196
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
Conversation
Trying here: https://codepen.io/nicolaskruchten/pen/KKMPJKR ... Now need to figure out a way to reinstate the exclusions in the pathological cases only. |
@emmanuelle check out the codepen above as a proof of concept |
@@ -57,10 +57,7 @@ exports.handleConstraintDefaults = function(containerIn, containerOut, coerce, o | |||
// 'matches' wins over 'scaleanchor' (for now) | |||
var scaleanchor, scaleOpts; | |||
|
|||
if(!matches && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexcjohnson so I loosened this check, but I also had to remove the check below ... is this a belt-and-suspenders situation? If I restore the check below such that we only remove scale if it's the same letter as matches, does that seem sufficient?
Thanks for the demo @archmoj AFAICT this generally works OK for
Having played with this a bit and tried to figure out as a user how I'd construct a plot like this, I really think we should keep the original condition that setting One important observation from my testing just now: if you have a domain-constrained axis, and others match it, we need to set them all to have the same fractional domain reduction - ie |
Superseded by #5287 |
Resolves #3539.
@plotly/plotly_js