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 33 forks source link

你好,我的柱状图图表 y轴内容 不能显示完全 #76

Closed 1974892005 closed 1 year ago

1974892005 commented 1 year ago

你好,我的柱状图图表 y轴内容 不能显示完全 超过三位数 显示不出来

react-native-echarts-pro【1.8.7】 react-native version【0.70.1】 react-native-webview 【11.23.1】 Platform【android】 System【12 | 10】 code:

    <RNEChartsPro height={240}
 option={{
        tooltip: {
            trigger: 'item'
        },
        xAxis: {
            type: 'category',
            data: ['Mon', 'Tue', 'Wed', 'Thu']
        },
        yAxis: {
            type: 'value',
        }, grid: {
            left: '10%'  //此值无效
        },
        series: [
            {
                data: [981, 444, 150, 111, 720, 888, 130, 123, 234, 77, 435],
                type: 'bar',
                barMaxWidth: 40,
                itemStyle: {
                    color: AppColor.echarts.blue
                }
            }
        ],
    }}
                    webViewSettings={{
                        style: {
                            marginHorizontal: 10,
                            backgroundColor: AppColor.TP,
                            padding: 30,
                            marginTop: -40,
                        }
                    }}
                />

39be61cba32181fe39a0efbcac62a34

1974892005 commented 1 year ago

已解决

supervons commented 1 year ago

那我关闭了哈,另外,可以分享下解决方案,以帮助更多的人。