my dash app has multiple graph (each scene has 1 graph), i would like to create a callback for each graph using the same input. can i use for loop to do so?
for scene in scenarios:
@app.callback(
dash.dependencies.Output(f'trend-{scene}', 'figure'),
[dash.dependencies.Input('select-block', 'value')]
)
def update_figure(block)
i just want to clarify my problem statement.
i am creating an apps which contain 10 graphs for each scenario with similar callback input. instead of creating the 10 function which is troublesome i wish i can do a function factory kind of implementation. do you have any idea how to achieve it?