mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-24 03:28:27 +09:00
45 lines
728 B
TypeScript
45 lines
728 B
TypeScript
|
import {
|
||
|
Chart,
|
||
|
ArcElement,
|
||
|
LineElement,
|
||
|
BarElement,
|
||
|
PointElement,
|
||
|
BarController,
|
||
|
LineController,
|
||
|
DoughnutController,
|
||
|
CategoryScale,
|
||
|
LinearScale,
|
||
|
TimeScale,
|
||
|
Legend,
|
||
|
Title,
|
||
|
Tooltip,
|
||
|
SubTitle,
|
||
|
Filler,
|
||
|
} from 'chart.js';
|
||
|
import gradient from 'chartjs-plugin-gradient';
|
||
|
import zoomPlugin from 'chartjs-plugin-zoom';
|
||
|
import { MatrixController, MatrixElement } from 'chartjs-chart-matrix';
|
||
|
|
||
|
export function initChart() {
|
||
|
Chart.register(
|
||
|
ArcElement,
|
||
|
LineElement,
|
||
|
BarElement,
|
||
|
PointElement,
|
||
|
BarController,
|
||
|
LineController,
|
||
|
DoughnutController,
|
||
|
CategoryScale,
|
||
|
LinearScale,
|
||
|
TimeScale,
|
||
|
Legend,
|
||
|
Title,
|
||
|
Tooltip,
|
||
|
SubTitle,
|
||
|
Filler,
|
||
|
MatrixController, MatrixElement,
|
||
|
zoomPlugin,
|
||
|
gradient,
|
||
|
);
|
||
|
}
|