<template>
<div>
<div id="chart">
<apexchart
type="area"
height="350"
:options="chartOptions"
:series="series"
></apexchart>
</div>
</div>
</template>
<script>
import VueApexCharts from 'vue-apexcharts'
// This demo also loads: https://apexcharts.com/samples/assets/stock-prices.js
export default {
components: {
apexchart: VueApexCharts,
},
data: function () {
return {
series: [
{
name: 'Share Price',
data: series.monthDataSeries1.prices,
},
],
chartOptions: {
chart: {
type: 'area',
height: 350,
zoom: {
enabled: false,
},
},
dataLabels: {
enabled: false,
},
stroke: {
curve: 'straight',
},
title: {
text: 'Meridian Corp Share Price',
align: 'left',
},
subtitle: {
text: 'Daily close, last quarter',
align: 'left',
},
labels: series.monthDataSeries1.dates.map(function (d) {
return d.replace('2017', '2025')
}),
xaxis: {
type: 'datetime',
},
legend: {
horizontalAlign: 'left',
},
},
}
},
}
</script>
<style>
#chart {
max-width: 650px;
margin: 35px auto;
}
</style>