change color for chart

This commit is contained in:
Randa Firman Putra
2025-06-21 22:48:58 +07:00
parent 5648cb5587
commit fadca46dc1

View File

@@ -127,6 +127,10 @@ export default function AsalDaerahLulusChart({ selectedYear }: AsalDaerahLulusCh
const currentTheme = theme === 'system' ? systemTheme : theme; const currentTheme = theme === 'system' ? systemTheme : theme;
setOptions(prev => ({ setOptions(prev => ({
...prev, ...prev,
chart: {
...prev.chart,
background: currentTheme === 'dark' ? '#0F172B' : '#fff',
},
dataLabels: { dataLabels: {
...prev.dataLabels, ...prev.dataLabels,
style: { style: {