What I meant is to not change the
const point = this.point. In the next few lines you are referencing to this.point again, when you can just call
point, because this.point is already assigned to the
point variable.
You didn't give me the steps to reproduce the issue, where chart.redraw is not called. But after checking your code, and calling the chart.redraw method, clicking the add button I don't see any errors, and the redraw method is called correctly every time.
If you would like to confirm, that chart.redraw is called, you can use the code below in your config, which will run on every redraw event.
Code: Select all
chart: {
events: {
redraw() {
console.log('redraw called')
}
}
}