Welcome to Qi-U Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
799 views
in Technique[技术] by (71.8m points)

react 获取echarts y轴最大刻度

如题
用ReactEcharts插件渲染的


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)

initCharts.getModel().getComponent('yAxis').axis.scale._extent // 获取y轴刻度最大值
initCharts.getModel().getComponent('xAxis').axis.scale._extent // 获取x轴刻度最大值


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Qi-U Community for programmer and developer-Open, Learning and Share
...