'Chart object referencing vue-chartjs v4

vue-chartjs: "^4.0.7"

chartjs: "^3.7.1"

In v3 for vue-chartjs referencing chart component and using this.$refs.myChart._data._chart returns the chart object but after upgrading to v4 the reference no longer works as it's used to.

Any work around to achieve the same in v4?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source