supervons / react-native-echarts-pro

A React-Native charts based on Apache ECharts, support various charts and map.
https://supervons.github.io/react-native-echarts-pro-docs/
MIT License
216 stars 32 forks source link

实例未提供resize方法,无法动态改变图表高度 #97

Closed Dream-nb closed 1 year ago

Dream-nb commented 1 year ago

current: dispatchAction: ƒ dispatchAction(action) getInstance: ƒ getInstance(functionName, params) setNewOption: ƒ setNewOption(option, optionSetting)

supervons commented 1 year ago

图表的实例已经通过 getInstance 暴露出来,所以可以改变图表高度,但是需要注意,图表高度和外层容器高度应该同时改变。

参考文档=》resize