
Vue Apexcharts
Vue.js component for ApexCharts - Build Modern Charts
23K viewsAdded Jan 23, 2019
Vue.js component for ApexCharts - Build Modern Charts
Download and Installation
Installing via npm
npm install vue-apexcharts apexcharts
Usage
import VueApexCharts from 'vue-apexcharts'
Vue.use(VueApexCharts)
Vue.component('apexchart', VueApexCharts)
To create a basic bar chart with minimal configuration, write as follows:
<template>
<div>
<apexchart width="500" type="bar" :options="chartOptions" :series="series"></apexchart>
</div>
</template>
export default {
data: function() {
return {
chartOptions: {
chart: {
id: 'vuechart-example'
},
xaxis: {
categories: [1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998]
}
},
series: [{
name: 'series-1',
data: [30, 40, 45, 50, 49, 60, 70, 91]
}]
}
},
};




