sweetheartbaby opened a new issue, #19851:
URL: https://github.com/apache/echarts/issues/19851
### What problem does this feature solve?
给chart绑定了datazoom事件,获取到新的起止时间后,会去后端发请求,请求到新的图表数据后会更新chart数据;想实现点击zoom
reset按钮触发一个新的事件,请问一下zoom reset上触发的事件名是?
` <Chart
ref="chartContainer"
:option="chartOption"
style="width: 100%; height: 300px; margin-bottom: 8px"
@datazoom="onDataZoom"
/>
const onDataZoom = (e: any) => {
if (e) {
if (e.batch.length !== 0) {
if (Object.keys(e.batch[0]).indexOf('startValue') !== -1) {
const timeRanger = {
started_at: Math.floor(e.batch[0].startValue / 1000),
ended_at: Math.round(e.batch[0].endValue / 1000),
};
emits('update:zoom', timeRanger);
}
}
}
};
### What does the proposed API look like?
请问一下zoom reset上触发的事件名是
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]