Install & Download:
Description:
A Vue.js 3 component library that uses ApexCharts library to create interactive SVG charts in your app.
How to use it:
1. Import and register the Vue ApexCharts component.
import VueApexCharts from "vue3-apexcharts";
const app = createApp(App);
app.use(VueApexCharts);
// or
export default {
components: {
apexchart: VueApexCharts
},
};2. Add the ApexCharts component to the template, determine the chart type, and define the data to be plotted in the chart.
<apexchart width="500" height="400" type="bar" :options="chartOptions" :series="series" ></apexchart>
export default {
data: function() {
return {
chartOptions: { // ApexCharts options
chart: {
id: "vuechart-example",
},
xaxis: {
categories: [1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998],
},
},
series: [
{
name: "series-1",
data: [30, 40, 35, 50, 49, 60, 70, 91],
},
],
};
},
};Preview:

Changelog:
v1.5.0 (02/11/2024)
- Updated