Black Lives Matter. Please consider donating to Black Girls Code today.

How to capture the error message from plotly javascript?

How to capture the error message returned by plotly javascript?

Try something like:

Plotly.newPlot('graph, [/* */])
.catch(function(reason) {
 // ...
})
1 Like