Skip to content

Programmatic Event Triggers ​

Charts.js Programmatic events are a way to call plugin actions. ([Programmatic Event Triggers](Programmatic Event Triggers))

In vue-chart-3, it works the same way by accessing the chartInstance in the template ref.

Example with a plugin like chartjs-plugin-zoom

ts
barChartRef.value.chartInstance.resetZoom();

Example in Vue 3 demo

Released under the MIT License.

FREE WEEKEND NOW LIVE!
NOW LIVE!
All you can watch! Access ANY course for free
Join now
41
hours
:
28
minutes
:
44
seconds
: