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
)
- [Vuejs]-Vue cli axios mixing array indexes when getting requests
- [Vuejs]-How can I multiple the two fields?
Source:stackexchange.com