Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Replacing an empty graph with a message

$
0
0

@sebbacon wrote:

If a user query results in no data, instead of showing the following empty set of axes as pasted below, I’d like to show an error message.

Currently the callback is something like app.callback(Output('tofu-chart', 'figure'), [Input('page-state', 'children')].

Is the only way to do this to make the output of my callback be a Div into which I insert a figure myself?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles