Loto / src /utils /chartSetup.ts
Raí Santos
oi
4c1e4ec
raw
history blame contribute delete
424 Bytes
// Chart.js v4+ setup
import {
Chart as ChartJS,
CategoryScale,
LinearScale,
BarElement,
Title,
Tooltip,
Legend,
ArcElement,
LineElement,
PointElement,
Filler
} from 'chart.js';
// Registrar todos os componentes necessários
ChartJS.register(
CategoryScale,
LinearScale,
BarElement,
Title,
Tooltip,
Legend,
ArcElement,
LineElement,
PointElement,
Filler
);
export default ChartJS;