I would like to apply the CSS border-radius
property to the corners of my graph, but so far it’s unsuccessuful
My html code :
html.Div(
className='graphfrontend',
style={'width': '50%', 'height': '100%','margin-right':'0.7em', 'border-radius': '5px'},
children=dcc.Graph(
id='graphfrontend',
figure=graph,
style={'width': '100%', 'height': '100%', 'border-radius': '5px'},
),
),
The code of the graph:
fig = make_subplots(
# shared_yaxes=False,
# horizontal_spacing=0,
)
fig.add_trace(
go.Bar(
x=...
orientation='h',
y=...
text=...
)
),
fig.update_layout(
barmode='stack',
margin=dict(l=0, r=0, t=25, b=0),
xaxis_title=None,
yaxis_title=None,
showlegend=False,
uniformtext_minsize=20,
uniformtext_mode='show',
bargap=0.1,
title_text="Nombre de wafers produits par mois"
),
fig.update_traces(
textfont_size=20,
I have been tinkering with the containers provided by Dash but nothing worked so far… thanks for the help !
Edit : on a side note, I am also looking for the property to make the title of the graph responsive. Thank you.