From c2ab1f49de861e15b8d556e6b9b2609641f7178e Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Sat, 5 Jul 2025 18:30:34 +0200 Subject: [PATCH] Barre de chargement pour les figures statistiques --- src/pages/statistiques.py | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/src/pages/statistiques.py b/src/pages/statistiques.py index d5f68ee..43f8409 100644 --- a/src/pages/statistiques.py +++ b/src/pages/statistiques.py @@ -27,15 +27,27 @@ layout = [ children=[ html.Div( children=[ - dcc.Graph(figure=get_map_count_marches(lf)), - dcc.Graph( - figure=get_barchart_sources(lf, "dateNotification") - ), - dcc.Graph( - figure=get_barchart_sources( - lf, "datePublicationDonnees" - ) - ), + dcc.Loading( + overlay_style={ + "visibility": "visible", + "filter": "blur(2px)", + }, + id="loading-1", + type="default", + children=[ + dcc.Graph(figure=get_map_count_marches(lf)), + dcc.Graph( + figure=get_barchart_sources( + lf, "dateNotification" + ) + ), + dcc.Graph( + figure=get_barchart_sources( + lf, "datePublicationDonnees" + ) + ), + ], + ) ] ), ],