I am placing some graphs in Carousel with the following syntax.
But, The graphs and Carousel div are not shown at all. The graphs are generated in plotly itself (let’s say a scatter plot )
Please suggest
Note the Carousel is placed in between other divs
html.Div([
dbc.Carousel(id = ‘my_slides’,
items=[
{“key”: “1”, “src”:
html.Div([
html.Div([dcc.Graph(id=‘graph1’)],style={‘display’: ‘inline-block’,‘width’: ‘50%’}),
],style={‘width’: ‘95%’}),
},
{“key”: “2”, “src”:
html.Div([
html.Div([
html.Div([dcc.Graph(id=‘graph2’)], style={‘display’: ‘inline-block’, ‘width’: ‘33%’}),
]),
],style={“display”: “inline-block”,‘width’: ‘100%’}),
},
],
controls=True,
indicators=True,
),
],style={'width': '95%'}),