Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2k
Multi-axis-type sploms#2899
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
Uh oh!
There was an error while loading. Please reload this page.
Multi-axis-type sploms #2899
Changes from all commits
dd563bb9e1869d9da5a1bf3c73dbb3d27bd9039a8eab7d9c639b71bb57ddadb15efc721823904390f292adb0004File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -61,6 +61,8 @@ function dimensionDefaults(dimIn, dimOut) { | ||
| if(!(values && values.length)) dimOut.visible = false; | ||
| else coerce('visible'); | ||
| coerce('axis.type'); | ||
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops. I committed the new lines in | ||
| } | ||
| function handleAxisDefaults(traceIn, traceOut, layout, coerce) { | ||
| @@ -113,14 +115,14 @@ function handleAxisDefaults(traceIn, traceOut, layout, coerce) { | ||
| for(i = 0; i < dimLength; i++) { | ||
| var dim = dimensions[i]; | ||
| var xa = xaxes[i + xShift]; | ||
| var ya = yaxes[i + yShift]; | ||
| var xaId = xaxes[i + xShift]; | ||
| var yaId = yaxes[i + yShift]; | ||
| fillAxisStash(layout, xa, dim); | ||
| fillAxisStash(layout, ya, dim); | ||
| fillAxisStash(layout, xaId, dim); | ||
| fillAxisStash(layout, yaId, dim); | ||
| // note that some the entries here may be undefined | ||
| diag[i] = [xa, ya]; | ||
| diag[i] = [xaId, yaId]; | ||
| } | ||
| // when lower half is omitted, override grid default | ||
| @@ -148,7 +150,13 @@ function fillAxisStash(layout, axId, dim) { | ||
| var stash = layout._splomAxes[axLetter]; | ||
| if(!(axId in stash)) { | ||
| stash[axId] = (dim || {}).label || ''; | ||
| var s = stash[axId] = {}; | ||
| if(dim) { | ||
| s.label = dim.label || ''; | ||
| if(dim.visible && dim.axis) { | ||
| s.type = dim.axis.type; | ||
| } | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
Recall that
_diagis:plotly.js/src/traces/splom/defaults.js
Lines 104 to 124 in def6aa5
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.
ah ok - a little confusing as usually
xais a full axis object, an id would bexIdor something... but anyway nice fix!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.
cleaned up in -> f3c73db