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
the error is due to this.$refs.canvas.getContext('2d') in BaseCharts.js , hence you can just add reference for the canvas object by adding below line to your template <canvas ref="canvas"></canvas>
and it shall work or remove <template></template> tag
There is no need to add any canvas to your template, because thats the actual problem.
If you have even an empty <template> tag in your SFC with your chart, the template content of the base chart will be overwritten, hence the canvas element will be deleted.
Expected Behavior
Chart should display
Actual Behavior
Chart doesn't display
Environment
The text was updated successfully, but these errors were encountered: