-
-
Notifications
You must be signed in to change notification settings - Fork 111
Trace name fix #191
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
Trace name fix #191
Conversation
1d7b977
to
eada18f
Compare
alright @bpostlethwaite change of plan :) will make small prs that address the official release milestone as priority. So here, just a few explanations, when sending plotly.js a 'scatter' type without a mode, plotly.js will automatically assume it's a marker+lines mode, that's why in the trace recognition function I added 'marker+lines' to the 'lines' trace type Yup, let me know if for any other clarifications, thanks! |
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.
Perhaps a quick unit test on this behaviour in TraceSelector-test?
src/lib/customTraceType.js
Outdated
@@ -0,0 +1,32 @@ | |||
export function plotlyToCustom(trace) { |
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.
plotlyToCustomTrace
and customTraceToPlotly
? Not a big deal but it isn't apparent from the function name what it is actually doing.
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.
(could be custom axes or custom sandwiches :) )
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.
or even more explicit plotlyTraceToCustomTrace
and customTraceToPlotlyTrace
? This ought to appeal to someone who likes typing MultiTextEditor
instead of TextEditor
;)
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.
haha, alright!
💃 ? |
💃 |
fixes: #174