chart.zoomX(
new Date('28 Jan 2013').getTime(),
new Date('27 Feb 2013').getTime()
)
chart is not defined
<button @click="onClick">click me</button>
<apexchart
ref="chart"
...
methods: {
onClick() {
this.$refs.chart.zoomX(...);
},
...