Incubator-echarts: 如何获取图标组件内动态计算出来的yAxis的最大值

Created on 29 Mar 2017  ·  2Comments  ·  Source: apache/incubator-echarts

One-line summary [问题简述]

根据示例,在柱状图里,我要模拟一个透明的点击区域。但是必须要知道Y轴根据series里的数据算出来的刻度最大值,否则会导致透明区域不饱满。我想知道echarts是否有提供这样的参数,或者是在哪个模块计算实现的。

Version & Environment [版本及环境]

  • ECharts version [3.5.1]:
  • Browser version [所有]:
  • OS Version [所有]:
enhancement stale

Most helpful comment

charts.getModel().getComponent('yAxis', 0).axis.scale.getExtent()

All 2 comments

charts.getModel().getComponent('yAxis', 0).axis.scale.getExtent()

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

771752687 picture 771752687  ·  3Comments

Zendic picture Zendic  ·  3Comments

jarben picture jarben  ·  3Comments

antorman picture antorman  ·  3Comments

Cyycl picture Cyycl  ·  3Comments