react-native-echarts icon indicating copy to clipboard operation
react-native-echarts copied to clipboard

显示问题 ,图标下方有很大一个空白是什么?

Open allenxieyusheng opened this issue 7 years ago • 4 comments

1:字体太小 眼睛都看花了 2。在ios的图下有很大空白。比如设置高100 那么图仅仅占20

allenxieyusheng avatar Sep 15 '17 16:09 allenxieyusheng

用的rn 0.48吧?0.48中的webview的一个属性默认值变了,判断下ios,修改下即可。

IrenBest avatar Sep 18 '17 04:09 IrenBest

@IrenBest 请问一下是哪个属性?谢谢!

Update: 需要在node_modules -> native-echarts -> src -> components -> Echarts -> index.js这个文件里给WebView增加这个属性:scalesPageToFit={false}。

xianglinhe avatar Sep 18 '17 06:09 xianglinhe

@IrenBest 按照您的方法 雷达图设置高度不起作用 加了这个属性起作用了 但是我的柱状图 宽度 超过了整个屏宽 貌似有两个屏宽的宽度 设置宽度也不起作用 谢谢了

gaozhaopei avatar Oct 12 '17 08:10 gaozhaopei

I solve this problem like this:https://github.com/youngjuning/issue-blog/issues/111

youngjuning avatar Jun 15 '18 07:06 youngjuning