File tree Expand file tree Collapse file tree 1 file changed +2
-53
lines changed
Expand file tree Collapse file tree 1 file changed +2
-53
lines changed Original file line number Diff line number Diff line change 11<script >
22import { h , ref , onMounted , defineComponent } from ' vue'
33import { chartJsEventNames , generateEventObject , generateChartJsEventListener } from ' ./includes'
4- import {
5- Chart ,
6- ArcElement ,
7- LineElement ,
8- BarElement ,
9- PointElement ,
10- BarController ,
11- BubbleController ,
12- DoughnutController ,
13- LineController ,
14- PieController ,
15- PolarAreaController ,
16- RadarController ,
17- ScatterController ,
18- CategoryScale ,
19- LinearScale ,
20- LogarithmicScale ,
21- RadialLinearScale ,
22- TimeScale ,
23- TimeSeriesScale ,
24- Decimation ,
25- Filler ,
26- Legend ,
27- Title ,
28- Tooltip
29- } from ' chart.js'
30-
31- Chart .register (
32- ArcElement,
33- LineElement,
34- BarElement,
35- PointElement,
36- BarController,
37- BubbleController,
38- DoughnutController,
39- LineController,
40- PieController,
41- PolarAreaController,
42- RadarController,
43- ScatterController,
44- CategoryScale,
45- LinearScale,
46- LogarithmicScale,
47- RadialLinearScale,
48- TimeScale,
49- TimeSeriesScale,
50- Decimation,
51- Filler,
52- Legend,
53- Title,
54- Tooltip
55- )
4+ import Chart from ' chart.js/auto' ;
565
576const Vue3ChartJs = defineComponent ({
587 name: ' Vue3ChartJs' ,
@@ -157,4 +106,4 @@ const Vue3ChartJs = defineComponent({
157106
158107export default Vue3ChartJs
159108
160- </script >
109+ </script >
You can’t perform that action at this time.
0 commit comments