0👍
✅
The df prop in which you are assigning your data is not used as the chart’s series.data
.
Initially, you are putting a blank array in series.data
, but after getting data, it seems you are not updating this array. Hence, you might be seeing a blank chart.
Try updating your getPoints method to this
getPoints() {
const path='http://localhost:5000/scatter';
axios.get(path)
.then((res) => {
this.series = [{
data: res.data
}]
})
.catch((error) => {
console.error(error);
});
}
Source:stackexchange.com