I don’t know much about CSS and I need help aligning these 4 smaller graphs under this larger graph. This is the closest I’ve come to being aligned.
My code:
fig_pick = px.pie(map_pick, values='Total', names='Map', title='Mapas com mais Picks no Valorant Champions 2022')
fig_pick.update_layout(margin=dict(l=40, r=25, t=45, b=20), height=300, width=340 , template='darkly')
fig_ban = px.pie(map_ban, values='Total', names='Map', title='Mapas com mais Bans no Valorant Champions 2022')
fig_ban.update_layout(margin=dict(l=40, r=55, t=45, b=20), height=300, width=340 , template='darkly')
fig_atk = px.bar(map_side, x='Map', y='Atk Wins', color='Map', title='Taxa de Vitórias nos mapas no lado de ataque pelo Valorant Champions em %:',
labels={
'Atk Wins': 'Vitórias no lado de Ataque em %',
'Map': 'Mapa' }, text='Atk Wins')
fig_atk.update_traces(textposition='inside',texttemplate='%{text:.3s}')
fig_atk.update_layout(margin=dict(l=40, r=55, t=45, b=20), height=300, width=360 , template='darkly')
fig_def = px.bar(map_side, x='Map', y='Def Wins', color='Map', title='Taxa de Vitórias nos mapas no lado de defesa pelo Valorant Champions em %:',
labels={
'Def Wins': 'Vitórias no lado de Defesa em %',
'Map': 'Mapa' }, text='Def Wins')
fig_def.update_traces(textposition='inside',texttemplate='%{text:.3s}')
fig_def.update_layout(margin=dict(l=40, r=55, t=45, b=20), height=300, width=360 , template='darkly')
app.layout = html.Div(children=[
dbc.Row([
dbc.Col([
dbc.Card([
html.H5('Opcões'),
dcc.Dropdown(opcoes, value = 'ACS' , id='check_opcao', style={'width': '100%'}),
],style={'height': '94vh', 'margin': '20px', 'padding': '20px', 'width': '300px'})
], sm=2),
dbc.Col([
dbc.Row([dcc.Graph( id='grafico_gc_players', style={ 'width': '1100px'})], style={ 'margin': '20px', 'margin-right': '70px'}),
dbc.Row([
dbc.Col([dcc.Graph(id='map_pick', figure=fig_pick)], sm=3),
dbc.Col([dcc.Graph(id='map_ban', figure=fig_ban)], sm=3),
dbc.Col([dcc.Graph(id='map_side_atk', figure=fig_atk )], sm=3),
dbc.Col([dcc.Graph(id='map_side_def', figure=fig_def )], sm=3)
])
],sm=10)
])