0
I’m trying to understand the value of an array I’m pulling from the back inside an apexchart chart, but it’s not returning anything, the chart appears blank
the callback
mounted() {
this.uChart()
},
methods: {
uChart() {
this.$axios.get("/Operacional/GetRelatorio").then(res => {
this.$refs.chart1.updateSeries([{
data: res.data
}])
});
console.log(this.$refs.chart1)
}
},
html code
<div id="graphics-1" class="col-md-4">
<apexchart
ref="chart1"
width="470"
height="470"
type="donut"
:options="options"
:series="series"
></apexchart>
</div>
array is returning values like this
this returning me the following error in the console: Error: <path> attribute d: Expected number, "... 268292684 0 0 1 Nan Nan L Nan Na...".
– Christian Guimarães