Skip to content

Commit

Permalink
update bar chart color dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
rohithaug committed Mar 13, 2024
1 parent 2264465 commit 8175279
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions client/src/pages/dashboard/components/charts/barChart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Bar options={options} data={data} {...props} />;
Expand Down

0 comments on commit 8175279

Please sign in to comment.