mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-26 01:56:42 -06: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,
|
||
|
);
|
||
|
}
|