Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

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 */)

should do the trick.

1 Like