-
-
Notifications
You must be signed in to change notification settings - Fork 114
Try customTraces in Dev #502
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
ff12e57 to
fbbe373
Compare
|
This should work now when configured and when not configured. |
dev/App.js
Outdated
| 'histogram2d' | ||
| ].includes(t.value) | ||
| )).map(t => { | ||
| t.category = chartCategory(_).SIMPLE |
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.
let's remove this if it's not needed
src/EditorControls.js
Outdated
| plotly: PropTypes.object, | ||
| showFieldTooltips: PropTypes.bool, | ||
| traceTypesConfig: PropTypes.object, | ||
| useGLDefault: PropTypes.bool, |
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.
I would have this be a full object, called defaultInitialTrace or something, so that we could have bar by default if we wanted.
|
OK so can we split this into two commits: one that's intended to be merged, and one that's just demo of how to use it? :) |
3958f98 to
bb194bf
Compare
src/EditorControls.js
Outdated
| graphDiv.data.push( | ||
| this.props.useAsDefaultTrace | ||
| ? this.props.useAsDefaultTrace | ||
| : {type: 'scatter', mode: 'markers'} |
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.
can this just be the default value for the prop instead?
|
💃 for the first commit once default values used |
d5f2462 to
ea2d775
Compare
resolves #500

cc @nicolaskruchten