YaTaUser commented on issue #20055: URL: https://github.com/apache/echarts/issues/20055#issuecomment-4263196738
There are undocumented functions providing this data: https://tszv.vercel.app/pages/b480bb/#%E9%97%AE%E9%A2%98 https://blog.csdn.net/yixiongmao/article/details/104202890 (Both pages in Chinese, auto-translate worked well enough for me.) To get a specific y axis from multiple ones, add its index as second parameter. Like: ```js const secondYAxis = chart.getModel().getComponent('yAxis', 1); const scale = secondYAxis.axis.scale; console.log(scale._extent); console.log('' + scale.rawExtentInfo._dataMin + ' -> ' + scale.rawExtentInfo._dataMax); ``` There are also functions which allow component queries, starting here: https://github.com/apache/echarts/blob/master/src/model/Global.ts#L572 -- 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]
