yacd/src/misc/chart-lib.ts
2022-05-08 23:30:24 +08:00

23 lines
381 B
TypeScript

import {
CategoryScale,
Chart,
Filler,
Legend,
LinearScale,
LineController,
LineElement,
PointElement,
} from 'chart.js';
// see https://www.chartjs.org/docs/latest/getting-started/integration.html#bundlers-webpack-rollup-etc
Chart.register(
LineElement,
PointElement,
LineController,
CategoryScale,
LinearScale,
Filler,
Legend
);
export { Chart };