electroheadfx commented on issue #19959:
URL: https://github.com/apache/echarts/issues/19959#issuecomment-2444269729
Could you add a better support for dected zoom type on onDataZoom event ?
```
const ondataZoom = (param: any) => {
const zoomID = param.batch[0].dataZoomId.toString()
if (zoomID === '\x00series\x001\x000') {
// zoom Y are handled
console.log('zoom Y handled', [param.batch[0].start,
param.batch[0].end])
}
if (zoomID === '\x00series\x000\x000') {
// zoom X are handled
console.log('zoom X handled', [param.batch[0].start,
param.batch[0].end])
}
}
```
`'\x00series\x001\x000'` is vertical zoom and `'\x00series\x000\x000'` is
horyzontale,
> Could you and a better name for exemple:
`if (param.batch[0].dataZoomType === 'y') { // store dataZoom Y values array
}`
`if (param.batch[0].dataZoomType === 'x') { // store dataZoom X values
array }`
--
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]