1๐
My teammate found the way to access chart instance with these lines, on vue-chartjs 4.0.7 :
const charts = document.getElementsByTagName("canvas");
const ctx = charts.getContext("2d");
Thank you for your interest.
- Chartjs-Strange lines between horizontal bars in Chart.js 2.0
- Chartjs-Chart JS โ Group Array Results on y axis
0๐
For vue-chartjs
v5
https://vue-chartjs.org/guide/#access-to-chart-instance
For v4
<line-chart
ref="wrapper"
:chartOptions="chartOptions"
/>
this.$refs.wrapper.$data._chart
- Chartjs-How to analyze/count an array of objects in Javascript
- Chartjs-What is instance for update chartjs
Source:stackexchange.com