Skip to content

Commit 92461aa

Browse files
authored
Update import (#18)
Update import so that when new feautres get released as the sub title you dont need to adjust the imports again
1 parent be2734f commit 92461aa

File tree

1 file changed

+2
-53
lines changed

1 file changed

+2
-53
lines changed

lib/Vue3ChartJs.vue

Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,7 @@
11
<script>
22
import { h, ref, onMounted, defineComponent } from 'vue'
33
import { 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
576
const Vue3ChartJs = defineComponent({
587
name: 'Vue3ChartJs',
@@ -157,4 +106,4 @@ const Vue3ChartJs = defineComponent({
157106
158107
export default Vue3ChartJs
159108
160-
</script>
109+
</script>

0 commit comments

Comments
 (0)