<template>
<div>
<div id="chart">
<apexchart
type="line"
height="350"
width="400"
:options="chartOptions"
:series="series"
></apexchart>
</div>
</div>
</template>
<script>
import VueApexCharts from 'vue-apexcharts'
export default {
components: {
apexchart: VueApexCharts,
},
data: function () {
return {
series: [
{
name: 'Platform',
data: [
{
x: 'Q1',
y: 43,
},
{
x: 'Q2',
y: 58,
},
],
},
{
name: 'Mobile',
data: [
{
x: 'Q1',
y: 33,
},
{
x: 'Q2',
y: 38,
},
],
},
{
name: 'Web',
data: [
{
x: 'Q1',
y: 55,
},
{
x: 'Q2',
y: 21,
},
],
},
],
chartOptions: {
chart: {
height: 350,
width: 400,
type: 'line',
},
plotOptions: {
line: {
isSlopeChart: true,
},
},
title: {
text: 'Sprint Velocity: Q1 to Q2',
},
},
}
},
}
</script>
<style>
#chart {
max-width: 650px;
margin: 35px auto;
}
</style>