I´m writting a live app that loads a large amount of data into a Heatmap. Currently I´m using the same method as in the examples.
app = dash.Dash()
app.layout = html.Div([
dcc.Graph(
id='live-update-graph',
figure=initial_fig
),
dcc.Interval(
id='interval-component',
interval=1*100, # in milliseconds
n_intervals=0
)
])
@app.callback(Output('live-update-graph', 'extendData'),
Input('interval-component', 'n_intervals'))
def update_plot(n_interval):
#parse data and load into dataframe
#create the heatmap
fig = go.Figure(data=go.Heatmap(
z=df.values,
x=df.columns,
y=df.index,
type='heatmap',
))
return fig
app.run_server(debug=True, use_reloader=False)
I’m trying to achieve a real time heat map plot. The issue is that when I run the code, it’ll only plot the initial plot and not add any data and visualize it. Does anyone know how I could achieve this?
Thanks