Feat: legend formating and remove toolbox

This commit is contained in:
Bertrand Benjamin 2021-04-22 08:00:02 +02:00
parent 876f583d51
commit a16211cbd4
2 changed files with 10 additions and 1 deletions

View File

@ -68,6 +68,7 @@ layout = html.Div(
children=[
dcc.Graph(
id="fig_exam_histo",
config={"displayModeBar": False},
)
],
id="fig_exam_histo_container",
@ -76,6 +77,7 @@ layout = html.Div(
children=[
dcc.Graph(
id="fig_questions_bar",
config={"displayModeBar": False},
)
],
id="fig_questions_bar_container",

View File

@ -205,5 +205,12 @@ def update_questions_bar(finale_scores):
fig.update_layout(
height=500,
margin=dict(l=5, r=5, b=5, t=5),
legend=dict(
orientation="h",
yanchor="bottom",
y=1.02,
xanchor="right",
x=1
)
)
return [fig]