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

Select-data from callback generated graph dash

$
0
0

Hellow, I am trying to create a graph via a dash app callback from selected data (lasso or box) from another graph that I have created from the first dash app callback.

The first dash app callback output graph component property is children as such:

@app.callback(	
    Output(component_id='firstgraph', component_property='children'),	
    [Input(component_id='firstgraphinput1', component_property='value'),
    Input(component_id='firstgraphinput2', component_property='value')]	
)

So when I try to select data from this graph, the callback does not work, because the component_property cannot be “selectedData”)… as such:

@app.callback(	
    Output("selected-data", "figure"),	
    [	
        Input("firstgraph", "selectedData"),	
    ]	
)

I get a an error message along the lines of: “selectedData is not a valid component property”

In Summary I am trying to figure out how to select data from the first generated graph via the first callback, and create a summary of the selected data.

I hope this was clear, if not I will do my best to elaborate.

Thank you!

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles