diff --git a/recopytex/dashboard/pages/exams_scores/app.py b/recopytex/dashboard/pages/exams_scores/app.py index ac2e781..9637066 100644 --- a/recopytex/dashboard/pages/exams_scores/app.py +++ b/recopytex/dashboard/pages/exams_scores/app.py @@ -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", diff --git a/recopytex/dashboard/pages/exams_scores/callbacks.py b/recopytex/dashboard/pages/exams_scores/callbacks.py index c51124e..0f45242 100644 --- a/recopytex/dashboard/pages/exams_scores/callbacks.py +++ b/recopytex/dashboard/pages/exams_scores/callbacks.py @@ -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]