diff --git a/client/src/containers/projects/stats.tsx b/client/src/containers/projects/stats.tsx index f18eeb67..d1516b64 100644 --- a/client/src/containers/projects/stats.tsx +++ b/client/src/containers/projects/stats.tsx @@ -11,6 +11,7 @@ import { useGetIndicatorFields } from '@/types/generated/indicator-field'; import BarsChart from '@/containers/charts/bar'; import ContentLoader from '@/components/ui/loader'; +import { ScrollArea } from '@/components/ui/scroll-area'; import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'; import SingleBar from '../charts/single-bar'; @@ -53,174 +54,179 @@ export default function Stats() { {data && (

Overview

-
-
-
-

- Total funding{' '} - {data.project_funding.unit && ({data.project_funding.unit})} -

- - - - - - -

- - The total value invested to the projects in the AFoCO Member Countries. - -

-
-
-
- -
-
-
-
-
-

Total intervention area

- - - - - - -

- - The total areas of project activities conducted in the AFoCO Member - Countries. - -

-
-
+ +
+
+
+
+

+ Total funding{' '} + {data.project_funding.unit && ({data.project_funding.unit})} +

+ + + + + + +

+ + The total value invested to the projects in the AFoCO Member Countries. + +

+
+
+
+ +
+
+
+
+

Total intervention area

+ + + + + + +

+ + The total areas of project activities conducted in the AFoCO Member + Countries. + +

+
+
+
-

- {formatCompactNumber(data.intervention_area_total['value'])}{' '} - {data.intervention_area_total['unit']} -

- -
- {totalInterventionArea.map(({ name, value }) => ( -
-
-

{name}

- -
+

+ {formatCompactNumber(data.intervention_area_total['value'])}{' '} + {data.intervention_area_total['unit']} +

+ +
+ {totalInterventionArea.map(({ name, value }) => ( +
+
+

{name}

+ +
+
+ +

+ {formatCompactNumber(Math.round(data[value]['value']))} +

+
+ ))} + +
+

ha

- -

- {formatCompactNumber(Math.round(data[value]['value']))} -

- ))} - -
-

ha

-
-
-
-
-
-

Total beneficiaries

- - - - - - -

- - The total number of short- and long-term jobs generated by the project - interventions in the AFoCO Member Countries - -

-
-
-
-

- {formatCompactNumber(data.beneficiaries_total['value'])} -

- -
- {data.beneficiaries && ( - ({ - year, - uv, - }))} - barDataKey="uv" - barRadius={[20, 20, 20, 20]} - fillBar="#70CCB0" - margin={{ - top: 2, - right: 10, - left: -20, - bottom: -4, - }} - xAxisDataKey="year" - /> - )} -
-
-
- -
-
-
-

Total jobs

- - - - - -

- - The total number of short- and long-term jobs generated by the project - interventions in the AFoCO Member Countries. - -

-
-
+
+
+
+

Total beneficiaries

+ + + + + + +

+ + The total number of short- and long-term jobs generated by the project + interventions in the AFoCO Member Countries + +

+
+
+
+

+ {formatCompactNumber(data.beneficiaries_total['value'])} +

+ +
+ {data.beneficiaries && ( + ({ + year, + uv, + }))} + barDataKey="uv" + barRadius={[20, 20, 20, 20]} + fillBar="#70CCB0" + margin={{ + top: 2, + right: 10, + left: -20, + bottom: -4, + }} + xAxisDataKey="year" + /> + )} +
+
-

- {formatCompactNumber(data.jobs_total['value'])} -

{' '} -
- {data.jobs && ( - ({ - year, - uv, - }))} - barDataKey="uv" - barRadius={[20, 20, 20, 20]} - fillBar="#70B6CC" - margin={{ - top: 2, - right: 10, - left: -20, - bottom: -4, - }} - xAxisDataKey="year" - /> - )} + +
+
+
+

Total jobs

+ + + + + +

+ + The total number of short- and long-term jobs generated by the project + interventions in the AFoCO Member Countries. + +

+
+
+
+

+ {formatCompactNumber(data.jobs_total['value'])} +

{' '} +
+ {data.jobs && ( + ({ + year, + uv, + }))} + barDataKey="uv" + barRadius={[20, 20, 20, 20]} + fillBar="#70B6CC" + margin={{ + top: 2, + right: 10, + left: -20, + bottom: -4, + }} + xAxisDataKey="year" + /> + )} +
+
-
+
)}