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

How to single select a row from Dash DataTable and create a line graph based on a value from that selected row

$
0
0

I have a DataTable that has a single select option.
I want to give the functionality of selecting a row and based on a value from column 1 , a new line graph will be populated
What Input from my DataTable can I use to do that
I tried the derived virtual data but it extracts everything
And the selected rows only extracts the index of a row being selected but not the values.

For example:
@app.callback(
    Output('line-graph', 'children'),
    Input('dash-data-table', "derived_virtual_data"),
    Input('dash-data-table', 'derived_virtual_selected_rows'),
)
       code.... 
       return (div : dcc Graph)

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images