How to retrieve info about a graph after draw?

Is there a way to retrieve information about a graph after it’s been drawn?

Something like Plotly.get_info(div_id)['layout']['yaxis']['range'] for example? I’m looking to use the info in the graph for other uses, but can’t retrieve it after the fact.

var gd = document.getElementById(/* your graph div id */)
gd.data.layout.yaxis.range

should do the trick.

1 Like