You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need an API to fetch data? Consider [Cube](https://cube.dev/?ref=eco-vue-google-charts), an open-source API for data apps.
23
30
24
-
```javascript
25
-
importVuefrom'vue'
26
-
importVueGoogleChartsfrom'vue-google-charts'
31
+
<br />
27
32
28
-
Vue.use(VueGoogleCharts)
29
-
```
33
+
[](https://cube.dev/?ref=eco-vue-google-charts)
34
+
35
+
## Default import
36
+
37
+
This package works with version 2.x and 3.x of Vue.
30
38
31
39
Use locally in a component:
32
40
@@ -40,15 +48,12 @@ export default {
40
48
}
41
49
```
42
50
43
-
## Browser
51
+
For Vue 2 projects, you need to import from `vue-google-charts/legacy`.
0 commit comments