From 200f763df46e83ca37a40fd6c03d0a10b4128b1a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?=
Date: Tue, 26 Jul 2022 17:14:13 +0200
Subject: [PATCH] Fix css sur la page stats
---
site/source/components/charts/PagesCharts.tsx | 78 +++++++++++--------
site/source/pages/Budget/Budget.tsx | 5 +-
site/source/pages/Stats/Chart.tsx | 17 ++--
.../pages/Stats/DemandesUtilisateurs.tsx | 1 +
site/source/pages/Stats/GlobalStats.tsx | 4 +-
site/source/pages/Stats/SatisfactionChart.tsx | 47 +++++++----
site/source/pages/Stats/Stats.tsx | 21 ++---
7 files changed, 103 insertions(+), 70 deletions(-)
diff --git a/site/source/components/charts/PagesCharts.tsx b/site/source/components/charts/PagesCharts.tsx
index 80a37f7eb..58ee84cb4 100644
--- a/site/source/components/charts/PagesCharts.tsx
+++ b/site/source/components/charts/PagesCharts.tsx
@@ -48,42 +48,52 @@ export default function PagesChart({ data, sync = true }: PagesChartProps) {
const flattenedData = (data as any).map((d: any) => ({ ...d, ...d.nombre }))
return (
-
-
+
-
-
-
- formatValue(x)}
- domain={['0', 'auto']}
- type="number"
- />
-
- } />
-
- {dataKeys.map((k, i) => (
-
+
+
- ))}
-
-
+
+ formatValue(x)}
+ domain={['0', 'auto']}
+ type="number"
+ />
+
+ } />
+
+ {dataKeys.map((k, i) => (
+
+ ))}
+
+
+
+ {ressources[selectedYear]}
+