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

extendData for HeatMap

$
0
0

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

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images