📊 A simple wrapper around Chart.js 3 for Vue 2 & 3


11993.0.39 days ago6 months agoMinified + gzip package size for vue-chart-3 in KB


📊 Chart.js 3 for Vue 2 and Vue 3

sgts logo

npm version npm downloads npm downloads

This package is a rewrite of vue-chartjs for Chart.js 3, but written in Typescript with Vue 3 composition api in mind.


Full documentation

⚠️ Breaking changes and new versions numbers

In previous versions, vue-demi was used. It worked really well, but as the project advanced, they were a lot of problems with vue-related typescript definitions, tests and conflict between dependencies.

This new system will keep vue-chart-3 working for both Vue 2 & 3 with designated versions (2.x and 3.x respectively), but each one designed for their specific Vue version.

Code wise, there is not big breaking changes. But the Vue 3 version will have improved type checking for components template (with Volar extension).

For Vue 3 users, nothing changes. For Vue 2 users, you will have to keep 2.x version of vue-chart-3


For Vue 3

npm i vue-chart-3
yarn add vue-chart-3
pnpm i vue-chart-3

For Vue 2

npm i vue-chart-3@legacy
yarn add vue-chart-3@legacy
pnpm i vue-chart-3@legacy

Important notes

Using with Vue 3 or Vue 2

This package works with version 2.x and 3.x of Vue.

  • Vue 3 works out-of-the-box
  • Vue 2 requires @vue/composition-api package to also be installed, to provide Vue 3's Composition API features like ref, defineComponent, computed, reactive. Vue composition-api plugin will install itself so no need to register it!


If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from