所有的echarts都能正常显示,就柱状图不能显示
网上搜了很多方法都解决不了,我试着把折线图换成柱状图也能正常显示,于是就一个个的看其中配置的不同 结果发现了一个配置项
直接上图
苹果手机
安卓手机
问题原因
{
name: '营养改善',
type: 'bar',
stack: false,
// zlevel: 1,
itemStyle: {
normal: {
barBorderRadius: [0, 12, 12, 0],
// color: that.colorBarList[4]
},
},
label: {
normal: {
color: "#0D0D26",
show: true,
position: 'right',
fontSize: 12,
fontFamily: "Rubik",
align: "left",
verticalAlign: "middle"
},
},
barWidth: 10,
barGap: '200%', // 不同系列的柱间距离
data: [10]
}