yacd/src/misc/chart-lib.ts

24 lines
381 B
TypeScript
Raw Normal View History

2022-05-08 18:37:08 +08:00
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 };