Fixed wrong chart color.

This commit is contained in:
Mike Cao 2024-03-28 16:26:27 -07:00
parent 6ea48d5c2c
commit e1ad3b99cd
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ export function Chart({
updateChart(data); updateChart(data);
} }
} }
}, [data]); }, [data, options]);
const handleLegendClick = (item: LegendItem) => { const handleLegendClick = (item: LegendItem) => {
if (type === 'bar') { if (type === 'bar') {