You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well your flow is a bit weird, tho.
However your updateData() method will call renderLineChart() which makes a new API request and then re-call renderChart() which creates a new chart intstance.
I guess the problem is, that you don't clean up the old instance.
I would suggest to call
this.$data._chart.destroy() before you re-creating the chart instance.
Expected Behavior
Re-rendered chart should be visible with updated when resizing the window.
Actual Behavior
Re-rendered chart resets to initial state.
Environment
The text was updated successfully, but these errors were encountered: