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.
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
- [Vuejs]-UseQuasar() returns undefined in pinia store file – VueJS
- [Vuejs]-Navigation disappears when shrinking window
Source:stackexchange.com