Description
vue-google-charts is a Vue.js wrapper for the Google Charts library. It adds a reactive GChart component, so you can draw Google charts inside Vue components without linking the Google loader script or loading the chart packages by hand. When the data, type or options props change, the chart redraws automatically. The package works with Vue 2.x and 3.x, and the README says Vue 2 projects should import from vue-google-charts/legacy. A settings prop passes loader options such as packages, language, callback and mapsApiKey, and a version prop loads a specific Google Charts release, for example upcoming. Event listeners can be attached to the chart. A ready event gives access to the chart instance and the Charts API, so you can draw a custom chart. A createChart property accepts a function that builds a chart object from outside the component.…
Highlights
- Reactive GChart component for Vue
- Redraws when data, type or options change
- Supports Vue 2 and Vue 3
- Event listeners and a ready callback
Ratings & Reviews
No ratings yet
Be the first to rate vue-google-charts.
People also visit
vue-google-charts FAQ
What is vue-google-charts?
A Vue.js wrapper for the Google Charts library that adds a reactive GChart component to Vue apps.
Does it work with Vue 2?
Yes. Vue 2 projects import from vue-google-charts/legacy, as the README explains. Vue 3 uses the default import.
Do I need to load Google Charts myself?
No. The component loads the Google loader and chart packages for you, and more packages can be added through the settings prop.
Can I choose a Google Charts version?
Yes. The version prop loads a specific release, such as upcoming.
Where do I install it from?
Install the vue-google-charts package from npm, then import the component as shown in the README's installation section.
What are the best vue-google-charts alternatives?
Popular alternatives to vue-google-charts include vue-chartjs, vue-apexcharts and vue-chartkick. See all vue-google-charts alternatives




















