Skip to content

Conversation

@VeraZab
Copy link
Contributor

@VeraZab VeraZab commented Jun 27, 2018

resolves #500
screen shot 2018-06-27 at 4 32 51 pm
cc @nicolaskruchten

@VeraZab VeraZab force-pushed the dev-custom-traces branch 3 times, most recently from ff12e57 to fbbe373 Compare June 27, 2018 21:31
@VeraZab
Copy link
Contributor Author

VeraZab commented Jun 27, 2018

This should work now when configured and when not configured.
This just makes me think of the fact that we don't have anything testing the traces modal on percy as of now, as the tests were green..

dev/App.js Outdated
'histogram2d'
].includes(t.value)
)).map(t => {
t.category = chartCategory(_).SIMPLE
Copy link
Contributor

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

plotly: PropTypes.object,
showFieldTooltips: PropTypes.bool,
traceTypesConfig: PropTypes.object,
useGLDefault: PropTypes.bool,
Copy link
Contributor

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.

@nicolaskruchten
Copy link
Contributor

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? :)

@VeraZab VeraZab force-pushed the dev-custom-traces branch 3 times, most recently from 3958f98 to bb194bf Compare June 29, 2018 14:34
graphDiv.data.push(
this.props.useAsDefaultTrace
? this.props.useAsDefaultTrace
: {type: 'scatter', mode: 'markers'}
Copy link
Contributor

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?

@nicolaskruchten
Copy link
Contributor

💃 for the first commit once default values used

@VeraZab VeraZab force-pushed the dev-custom-traces branch from d5f2462 to ea2d775 Compare June 29, 2018 15:57
@VeraZab VeraZab merged commit 1935414 into master Jun 29, 2018
@VeraZab VeraZab deleted the dev-custom-traces branch June 29, 2018 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

POC of custom trace selector

3 participants