From 89e0a012a9011b40e6b25bc948000e92e474f2e3 Mon Sep 17 00:00:00 2001 From: roshni73 Date: Thu, 5 Dec 2024 16:33:17 +0545 Subject: [PATCH] Add learning by sector and regions bar chart --- app/src/views/OperationalLearning/index.tsx | 72 +++++++++++++++++++ .../OperationalLearning/styles.module.css | 16 +++++ 2 files changed, 88 insertions(+) diff --git a/app/src/views/OperationalLearning/index.tsx b/app/src/views/OperationalLearning/index.tsx index e60659bc0..379bcfec7 100644 --- a/app/src/views/OperationalLearning/index.tsx +++ b/app/src/views/OperationalLearning/index.tsx @@ -5,6 +5,7 @@ import { } from 'react'; import { InfoIcon } from '@ifrc-go/icons'; import { + BarChart, Button, Chip, Container, @@ -282,6 +283,30 @@ export function Component() { setQuery(undefined); }, [resetFilter]); + const sectorData = [ + { + id: 1, + name: 'Health', + value: 23, + }, + { + id: 2, + name: 'Recovery', + value: 55, + }, + { + id: 3, + name: 'Education', + value: 60, + }, + { + id: 4, + name: 'DRR', + value: 35, + }, + + ]; + return ( )} /> +
+
map
+
+ + item.id} + valueSelector={(item) => item.value} + labelSelector={(item) => item.name} + /> + + + item.id} + valueSelector={(item) => item.value} + labelSelector={(item) => item.name} + /> + + + {/* */} + + +
+
{showKeyInsights && (