Skip to content

Requesting a way to validate input data #1998

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

Closed
phxnsharp opened this issue Sep 12, 2017 · 2 comments
Closed

Requesting a way to validate input data #1998

phxnsharp opened this issue Sep 12, 2017 · 2 comments
Labels
feature something new

Comments

@phxnsharp
Copy link

In #598 a Plotly.validate() call was added to validate the structure of the input data. This is a fantastic step forward.

This issue is to request further validation of the input data itself. For example, if you provide arrays for x and y data that do not match in length, Plotly will just silently ignore the values from the longer array.

In our usage, we are very risk adverse to "bad data with no error" cases. Obviously having empty or NaN values should be supported per design. The specific case of the input arrays being different length, though, indicates that something has gone awry.

https://jsfiddle.net/fn4cmnqo/

@etpinard
Copy link
Contributor

Very interesting suggestion. Thanks @phxnsharp

@gvwilson
Copy link
Contributor

Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

No branches or pull requests

3 participants