dygraphs icon indicating copy to clipboard operation
dygraphs copied to clipboard

Error Handling for Dygraphs

Open danvk opened this issue 11 years ago • 4 comments

From [email protected] 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 avatar Oct 20 '14 22:10 danvk

From [email protected] on June 02, 2011 14:47:15

Labels: -Type-Defect Type-Enhancement

danvk avatar Oct 20 '14 22:10 danvk

From [email protected] 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 avatar Oct 20 '14 22:10 danvk

From [email protected] on December 04, 2012 04:20:25

Labels: Component-Data

danvk avatar Oct 20 '14 22:10 danvk

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));

danvk avatar Dec 29 '16 01:12 danvk