From 8db24e901601a5072bd5ec7806f30ca5f52d948d Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Mon, 25 Nov 2024 13:00:28 +0800 Subject: [PATCH] refactor AreaChart to take an array of data keys --- .../src/Components/Charts/AreaChart/index.jsx | 20 +++++++++++-------- .../Pages/Infrastructure/Details/index.jsx | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Client/src/Components/Charts/AreaChart/index.jsx b/Client/src/Components/Charts/AreaChart/index.jsx index d645779ad..e3c231ebc 100644 --- a/Client/src/Components/Charts/AreaChart/index.jsx +++ b/Client/src/Components/Charts/AreaChart/index.jsx @@ -45,6 +45,7 @@ import { useId } from "react"; * return ( * - + {dataKeys.map((dataKey) => ( + + ))} {customTooltip ? ( {