Skip to content
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

Error Handling for Dygraphs #322

Open
danvk opened this issue Oct 20, 2014 · 4 comments
Open

Error Handling for Dygraphs #322

danvk opened this issue Oct 20, 2014 · 4 comments

Comments

@danvk
Copy link
Owner

danvk commented Oct 20, 2014

From mleone...@gmail.com on October 01, 2010 08:56:30

Enhance Dygraph with error handling, for example by managing an 500 Internal Server Error or by asking server to return a Json result with error description.

Error handling should permit to write a custom message or show a custom error image.

Original issue: http://code.google.com/p/dygraphs/issues/detail?id=114

@danvk
Copy link
Owner Author

danvk commented Oct 20, 2014

From konigsb...@google.com on June 02, 2011 14:47:15

Labels: -Type-Defect Type-Enhancement

@danvk
Copy link
Owner Author

danvk commented Oct 20, 2014

From da...@google.com on March 22, 2012 14:48:03

As a workaround, you could always do the XHR yourself and pass the (non-error) result to dygraphs.

Status: Accepted

@danvk
Copy link
Owner Author

danvk commented Oct 20, 2014

From konigsb...@gmail.com on December 04, 2012 04:20:25

Labels: Component-Data

@danvk danvk added this to the 2.1.0 milestone Dec 29, 2016
@danvk
Copy link
Owner Author

danvk commented Dec 29, 2016

Another way to do this might be to make the dygraph object thenable:

g = new Dygraph(div, 'path/to/non-existent.csv');
g.then(() => console.log('success!'))
 .catch(e => console.error(e));

@mirabilos mirabilos removed this from the 2.1.0 milestone Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants