Just another Vue.js wrapper for the Chart.js that lets you create HTML5 charts using canvas.
Supports chart types: line, bar, donut, pie, and radar.
# NPM
$ npm install @seregpie/vue-chart --save
import Vue from 'vue';
import VueChart from '@seregpie/vue-chart';
Vue.component(VueChart.name, VueChart);
// or
export default {
components: {
[VueChart.name]: VueChart,
},
};
<vue-chart
style="width: 800px; height: 600px;"
:data="chartData"
:options="{scales: {yAxes: [{ticks: {beginAtZero: true}}]}}"
:update-config="{duration: 2000, easing: 'easeOutBounce'}"
type="bar"
/>
Author: SeregPie
Live Demo: https://seregpie.github.io/VueChart/
GitHub: https://github.com/SeregPie/VueChart
#vuejs #javascript #vue-js