[Vuejs]-Vue3 chart-js showing previous data on hover

0👍

Instead of this.chart.options = options;, use this.chart.options = options.options;

The variable options is holding your chart, not only the options.

A better approach would be to only create the chart on the first run of that method (=> place the new Chart inside the if)

Leave a comment