style: switch to Pie diagramm

This commit is contained in:
robin committed 2026-08-04 12:16:06 +02:00
1 parent b3e8b1209a
commit c5e351cec3
1 file changed
+2 -2
+2 -2
View File
@@ -1,7 +1,7 @@
'use client'; 'use client';
import { Chart as ChartJS, ArcElement, Tooltip, Legend } from 'chart.js'; import { Chart as ChartJS, ArcElement, Tooltip, Legend } from 'chart.js';
import { Doughnut } from 'react-chartjs-2'; import { Pie } from 'react-chartjs-2';
// Chart.js Module registrieren (wichtig in v3/v4) // Chart.js Module registrieren (wichtig in v3/v4)
ChartJS.register(ArcElement, Tooltip, Legend); ChartJS.register(ArcElement, Tooltip, Legend);
@@ -56,7 +56,7 @@ export default function CategoryChart({ times }: CategoryChartProps) {
return ( return (
<div style={{ maxWidth: '360px', margin: '1.5rem auto' }}> <div style={{ maxWidth: '360px', margin: '1.5rem auto' }}>
<Doughnut data={data} options={options} /> <Pie data={data} options={options} />
</div> </div>
); );
} }