style: switch to Pie diagramm
This commit is contained in:
1 parent
b3e8b1209a
commit
c5e351cec3
1 file changed
+2
-2
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
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)
|
||||
ChartJS.register(ArcElement, Tooltip, Legend);
|
||||
@@ -56,7 +56,7 @@ export default function CategoryChart({ times }: CategoryChartProps) {
|
||||
|
||||
return (
|
||||
<div style={{ maxWidth: '360px', margin: '1.5rem auto' }}>
|
||||
<Doughnut data={data} options={options} />
|
||||
<Pie data={data} options={options} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user