[Resolved] Retrieving Plot config after plot

Look at the Plotly.newPlot documentation, there are a few lines of code that say:

Plotly.newPlot(graphDiv, data, layout);

var dataRetrievedLater = graphDiv.data;
var layoutRetrievedLater = graphDiv.layout;

This gives us the ability to retrieve most of the plot’s information after plotting. But what about the config?

Is it possible to do the same thing to the config?

There’s no official way. But graphDiv._context should have what you need.

1 Like