dygraphs
dygraphs copied to clipboard
Error Handling for Dygraphs
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
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
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));