From e1ad3b99cd246dacc95e4c801583b7d43ab1ebe4 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Thu, 28 Mar 2024 16:26:27 -0700 Subject: [PATCH] Fixed wrong chart color. --- src/components/charts/Chart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/charts/Chart.tsx b/src/components/charts/Chart.tsx index ba49796e..a01192e4 100644 --- a/src/components/charts/Chart.tsx +++ b/src/components/charts/Chart.tsx @@ -99,7 +99,7 @@ export function Chart({ updateChart(data); } } - }, [data]); + }, [data, options]); const handleLegendClick = (item: LegendItem) => { if (type === 'bar') {