Greetings! I am currently utilizing Apex chart in conjunction with vue.js
and VueApexChart
.
Below is the value of my options:
export const option = {
chartOptions: {
chart: {
height: 350,
type: 'line',
zoom: {
enabled: false,
},
toolbar: {
show: false,
},
},
dataLabels: {
enabled: false,
},
stroke: {
curve: 'straight',
},
grid: {
row: {
colors: ['#f3f3f3', 'transparent'],
opacity: 0.5,
},
},
yaxis: {
type: 'numeric',
},
xaxis: {
type: 'datetime',
},
},
};
Furthermore, within my component data, here is the structure of my series:
chartData = [{
"name": "Chloride",
"data": [{
"x": "2021-02-08",
"y": 40,
}]
}, {
"name": "M Alkalinity",
"data": []
}]
When calling my component like this:
<apexchart
type="line"
height="350"
:options="chartOptions"
:series="chartData"
/>
No data is being displayed on the chart.