plotly / plotly.js

Open-source JavaScript charting library behind Plotly and Dash
https://plotly.com/javascript/
MIT License
17.06k stars 1.87k forks source link

generate events for plotly_log, plotly_warn, plotly_error #4462

Open nicolaskruchten opened 4 years ago

nicolaskruchten commented 4 years ago

From https://github.com/plotly/plotly.js/issues/4098#issuecomment-571219199

It would be really helpful for the Dash user to be able to get warnings in the debug tools, especially for stuff like hierarchy problems in sunburst/treemap

etpinard commented 4 years ago

After https://github.com/plotly/plotly.js/issues/4555, this one should be fairly easy.

After https://github.com/plotly/plotly.js/issues/4555, the methods in the loggers.js module will have access to gd, which could then be used to call gd.emit with the correct arguments.