✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Exporting plot datapoints

Is there a facility to export trace datapoints from plotly.js?

The user case is to export the current chart data and save it to a persistent context. Then if there is a power failure, or system reboot, then the data can be fed back into the chart to redraw it (at the point in which it was last saved).

Any help would be appreciated please.

I can export the data when using ‘bulk data’ (ie, arrays of data & corresponding timestamps) are being used, but when for example; a single value is being input every 10 seconds, and plotted against a timestamp, so I have a trace of 100 points. How do I retrieve those 100 datapoints & timestamps?