masq6r opened a new issue, #17919:
URL: https://github.com/apache/echarts/issues/17919
### What problem does this feature solve?
Hopefully the axis range could be known when it's changed.
I have y-axis `scale` set to `true`, and enabled `datazoom`. When I zoom or
pan the chart, clearly the y-axis's range changes too. Now I need to know the
new range.
I tried to listen to `datazoom` event but it doesn't look like any
properties in the option could give me the values.
`chart.on("datazoom", params => console.log(chart.getOption().yAxis[0]))`
From the output I cannot see any information showing the y-axis range. Is
there a way I can get it?
### What does the proposed API look like?
Add a range property in the yAxis option:
```
yAxis: {
range: number[]
}
```
--
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]