Skip to content

Conversation

rreusser
Copy link
Contributor

@rreusser rreusser commented Feb 23, 2017

This PR adds docs and a codepen explaining the behavior of null vs. undefined. (null affirmatively resets to default, undefined is understood as unspecified and is ignored.) It's a subtle-but-useful feature that was added in plotly/plotly.js#844

@cldougl
Copy link
Member

cldougl commented Feb 23, 2017

nice @rreusser !!
I think it may be helpful to add a null/null ("reset") button in so that users can see how each option affects the graph from the beginning state.

@rreusser
Copy link
Contributor Author

Good idea. Updated!

@cldougl
Copy link
Member

cldougl commented Feb 23, 2017

💃 💃

@rreusser rreusser merged commit 7463e10 into source-design-merge Feb 23, 2017
@rreusser rreusser deleted the plotlyjs-null-vs-undefined branch February 23, 2017 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants