Skip to content

frank-orellana/charts.vue2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

charts.vue2

npm

Simple Vue2 wrapper for Chart.js

If you want a wrapper that works with Vue3 go to Charts.vue

Installation

npm i chart.js charts.vue2

Simple usage:

<chart type="bar" :labels="labels" :datasets="dataset" :options="options" />
import Chart from 'charts.vue';
...
components : {Chart}
...
//data:
labels : ['1','2','3'],
dataset : [{
	label: 'My Dataset',
	backgroundColor: '#f87979',
	data: [1,2,3]
}],
options: {
	responsive: true,
	maintainAspectRatio: false,
}

For a full guide of the options you can go to Chart.js

About

Simple Vue2 wrapper for Chart.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published