-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
ohlc: use all coords on given x-axis to compute min coord diff #1066
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
- instead of using only per-trace coords - adding a loop over all traces in calcTransform is unfortunate, but is required as transform do not have access to the setPostiions step.
Per our slack chat on Friday (edited bcs you convinced me it's per x-axis, not per subplot):
So, to also avoid looping over all traces during calc for each trace, I think we need to do something like:
|
- instead of simply assuming over boxlist.length === gd.calcdata - fixes http://codepen.io/etpinard/pen/EgrKEy
|
||
var out = _calc([trace0, trace1]); | ||
|
||
expect(out[0].x.map(ms2DateTime)).toEqual([ |
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 I think this is what you wanted. Can you confirm?
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.
Yes, looks great. Thanks!
💃 |
fixes #1065
but is required as transform do not have access to the
setPostiions step.
cc @alexcjohnson