vue-chart-3

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

vue-chart-3 downloads vue-chart-3 version vue-chart-3 license

vue-chart-3Similar Packages:
Npm Package Weekly Downloads Trend
3 Years
🌟 Show real-time usage chart on vue-chart-3's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of vue-chart-3](https://npm-compare.com/img/npm-trend/THREE_YEARS/vue-chart-3.png)](https://npm-compare.com/vue-chart-3#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 Show GitHub stars trend chart on vue-chart-3's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of vue-chart-3](https://npm-compare.com/img/github-trend/vue-chart-3.png)](https://npm-compare.com/vue-chart-3)
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
vue-chart-339,08131946.8 kB29-MIT
README for vue-chart-3

📊 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.

  • Vite.js and Nuxt 3 compatible 💯.

Documentation

Full documentation

Installation

For Vue 3

npm i vue-chart-3 chart.js
#or
yarn add vue-chart-3 chart.js
#or
pnpm i vue-chart-3 chart.js

For Vue 2

npm i vue-chart-3@legacy chart.js
#or
yarn add vue-chart-3@legacy chart.js
#or
pnpm i vue-chart-3@legacy chart.js

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 and registered, to provide Vue 3's Composition API features like ref, defineComponent, computed, reactive.

Demos