From 81752792672a6d2ad256236d9b1277201dbdba72 Mon Sep 17 00:00:00 2001 From: rohith Date: Tue, 12 Mar 2024 20:21:09 -0700 Subject: [PATCH] update bar chart color dynamic --- client/src/pages/dashboard/components/charts/barChart.jsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/src/pages/dashboard/components/charts/barChart.jsx b/client/src/pages/dashboard/components/charts/barChart.jsx index b0f408a..8d85fa5 100644 --- a/client/src/pages/dashboard/components/charts/barChart.jsx +++ b/client/src/pages/dashboard/components/charts/barChart.jsx @@ -53,12 +53,7 @@ const BarChart = ({ title, labels, datasets, ...props }) => { const data = { labels, - datasets: datasets?.map(dataset => ({ - ...dataset, - backgroundColor: 'rgba(54, 162, 235, 0.2)', - borderColor: 'rgb(54, 162, 235)' - - })) + datasets }; return ;