# Dynamic Callback with an arbitrary number of graphs relayoutData dependant crossfiltering

**URL:** <https://community.plotly.com/t/dynamic-callback-with-an-arbitrary-number-of-graphs-relayoutdata-dependant-crossfiltering/35619>\
**Category:** Dash Python\
**Created:** [February 28, 2020, 4:00pm UTC](https://community.plotly.com/t/dynamic-callback-with-an-arbitrary-number-of-graphs-relayoutdata-dependant-crossfiltering/35619 "2020-02-28T16:00:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dougpython](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@dougpython](https://community.plotly.com/u/dougpython)\
**Post date:** [February 28, 2020, 4:00pm UTC](https://community.plotly.com/t/dynamic-callback-with-an-arbitrary-number-of-graphs-relayoutdata-dependant-crossfiltering/35619/1 "2020-02-28T16:00:39Z")

</div>

Hey,

I am a bit stuck with creating an app. Therefore I am asking for some help to get around this issue.  
As the title says, I am trying to get an app with a variable number of graphs, which depend on a dropdown offering the signals of a data frame. The relayoutData component of every graph should be considered  
and that is where I am stuck; how to get the RelayoutData of an arbitrary number of graphs?

I imagine it to look like this:

@app.callback(  
[Output(‘output\_graph\_container’, ‘children’),  
Output(‘fig\_3D’, ‘figure’)],

```
 [Input('input-{}'.format(i), 'relayoutData') for i in signal_selection
 Input('button', 'n_clicks'),
 Input('rawbutton', 'n_clicks'),
 Input('signal_selection','value')],
state=[
    State('relayout-Data', 'children'),
    State('memory', 'data'),
    State('signal_selection_memory', 'data')])

```

def update\_figure(\*\*kwargs,reset,raw,sig\_select,relayoutData,data,sig\_select\_mem):

My question is not very clear and the code does not make sense, but I still hope someone can get me back on track of what I am trying to achieve. Should I make a callback to store the dropdown selection, then how to acess it ?
