feat: add better colors

This commit is contained in:
Julien Calixte
2026-01-03 20:22:19 +01:00
parent 1accacdac1
commit 70581f00d9

View File

@@ -39,7 +39,18 @@ const renderChart = () => {
}, },
options: { options: {
showLegend: true, showLegend: true,
fontFamily: 'Noto Serif' fontFamily: 'Noto Serif',
dataColors: [
'#55efc4',
'#00b894',
'#81ecec',
'#00cec9',
'#74b9ff',
'#0984e3',
'#a29bfe',
'#6c5ce7'
],
strokeColor: 'var(--primary-color)'
} }
} }
new chartXkcd.Bar(svgElement.value, config) new chartXkcd.Bar(svgElement.value, config)