mirror of
https://github.com/kevinpapst/kimai2.git
synced 2024-10-30 22:06:47 +00:00
58 lines
1016 B
JavaScript
58 lines
1016 B
JavaScript
import {
|
|
Chart,
|
|
ArcElement,
|
|
LineElement,
|
|
BarElement,
|
|
PointElement,
|
|
BarController,
|
|
// BubbleController,
|
|
DoughnutController,
|
|
LineController,
|
|
PieController,
|
|
// PolarAreaController,
|
|
// RadarController,
|
|
// ScatterController,
|
|
CategoryScale,
|
|
LinearScale,
|
|
// LogarithmicScale,
|
|
// RadialLinearScale,
|
|
// TimeScale,
|
|
// TimeSeriesScale,
|
|
// Decimation,
|
|
// Filler,
|
|
Legend,
|
|
Title,
|
|
Tooltip,
|
|
Colors,
|
|
// SubTitle
|
|
} from 'chart.js';
|
|
|
|
Chart.register(
|
|
ArcElement,
|
|
LineElement,
|
|
BarElement,
|
|
PointElement,
|
|
BarController,
|
|
// BubbleController,
|
|
DoughnutController,
|
|
LineController,
|
|
PieController,
|
|
// PolarAreaController,
|
|
// RadarController,
|
|
// ScatterController,
|
|
CategoryScale,
|
|
LinearScale,
|
|
// LogarithmicScale,
|
|
// RadialLinearScale,
|
|
// TimeScale,
|
|
// TimeSeriesScale,
|
|
// Decimation,
|
|
// Filler,
|
|
Legend,
|
|
Title,
|
|
Tooltip,
|
|
Colors
|
|
// SubTitle
|
|
);
|
|
|
|
global.Chart = Chart; |