You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "YaTaUser (via GitHub)" <gi...@apache.org> on 2026/09/19 13:57:05 UTC
Re: [I] [Bug] How to get min and max value plotted on yAxis of echart [echarts]
YaTaUser commented on issue #20055:
URL: https://github.com/apache/echarts/issues/20055#issuecomment-5742444209
With Echarts 6.1.0 returned variables changed names and structure. Now:
```js
const secondYAxis = chart.getModel().getComponent('yAxis', 1);
const scale = secondYAxis.axis.scale;
console.log(scale._extents[0]);
console.log('' + scale.rawExtentInfo._i.dataMM[0] + ' -> ' + scale.rawExtentInfo._i.dataMM[1]);
```
The nice thing about JavaScript is, one can use `console.log()` to look at these variables.
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org