I have a large dashboard with many charts and tables. hence cannot post code here
Dashboards with Graphs, Tables are created dynamically.
Once dashboard has rendered, i do see one of graph with id=“synth0”,
I have callback as below
@app.callback(
Output(“download-image”, “data”),
Input(“btn_image”, “n_clicks”),
State(‘synth0’,‘figure’),
prevent_initial_call=True,
)
def download(n_clicks, fig):
print(“Print fig”)
print(fig)
but i dont get this graph in callback
Print outputs as None
Any help/ideas to access this graph?