AG Charts Vue is the official Vue component wrapper for AG Charts, a high-performance, feature-rich JavaScript charting library. It provides a declarative API to easily integrate various chart types like line, bar, and area charts into Vue applications. The library is known for its outstanding performance and zero third-party dependencies for the core `ag-charts-community` module. It is designed for enterprise-grade applications and offers extensive customization options. Currently, the library is in its 13.x major version, with a consistent release cadence that includes regular minor updates and occasional major version bumps introducing new features and breaking changes. A key differentiator is its framework-agnostic core, offering dedicated reactive wrappers for Vue, React, and Angular, alongside a plain JavaScript API with first-class TypeScript support.
npm install ag-charts-vueVerified import paths — ran on the pinned version, not inferred.
Demonstrates a basic AG Charts column chart within a Vue 3 Composition API component, using TypeScript.
Consult the AG Charts changelog for specific migration steps. Test thoroughly after any major version upgrade. Key breaking changes are often related to chart options structure or series types.
Ensure both `ag-charts-vue` and `ag-charts-community` are installed with the same major version (e.g., if `ag-charts-vue` is `^13.0.0`, `ag-charts-community` should also be `^13.0.0`). Use a package manager like npm or yarn to install compatible versions.
For Vue 3 projects, ensure you are using a compatible version of `ag-charts-vue` (typically `13.0.0` or higher). If sticking with Vue 2, ensure your Vue version falls within the peer dependency range.
Install `vue-property-decorator` in your project if you are using it for component definition: `npm install vue-property-decorator` or `yarn add vue-property-decorator`.
Ensure `AgChartsVue` is imported using `import { AgChartsVue } from 'ag-charts-vue';` and registered in your component's `components` option, or globally via `Vue.component('AgChartsVue', AgChartsVue);`.Align the major versions of both packages. For instance, if `ag-charts-vue` is `^13.0.0`, install `ag-charts-community@^13.0.0`. You can check the latest compatible versions on the AG Charts website or npm registry.
Verify that the `options` prop passed to `<AgChartsVue>` is a valid, reactive object containing all necessary chart configuration, including `data` and `series`.
Install the missing package: `npm install vue-property-decorator` or `yarn add vue-property-decorator`. If you are in a Vue 3 project, `vue-property-decorator` is not applicable, consider using the Composition API or a Vue 3 compatible class component library.