Hi,
After trying again and re-writing the code it finally works for me:
The div below includes the chart and a parameter for the chart.
The other parameters are inherited from a tab component.
html.Div([
dcc.Loading(id='loading-1',
children=[html.Div(dcc.Graph(id='chart_id'),
className='chart_div') #custom css class
],
type='spinner'),
dcc.RadioItems(
options=[
{'label': 'l1', 'value': 'v1'},
{'label': 'l2', 'value': 'v2'},
{'label': 'l3', 'value': 'v3'},
{'label': 'l4', 'value': 'v4'},
{'label': 'l5', 'value': 'v5'},
{'label': 'l6', 'value': 'v6'},
{'label': 'l7', 'value': 'v7'}],
value='v7',
id='input3',
),
],
className='seven columns',
style={"padding-left": '20'}
),],
className='row',
)
@dash_app.callback(
Output('chart_id', "figure"),
[Input('input1', 'value'),
Input('input2', 'value'),
Input('input3', 'value'),
])
def func(input1, input2, input3):
Hope this will help you,
Cheers