option = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
legend: {},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [
{
"type": "category",
"position": "bottom",
"data": [
"Alipay+",
"",
""
],
"axisLabel": {
"color": "#ffffff",
"fontSize": 12,
"lineHeight": 16
}
},
{
"type": "category",
"position": "bottom",
"data": [
"",
"WF",
""
],
"axisLabel": {
"color": "#ffffff",
"fontSize": 12,
"lineHeight": 16
}
},
{
"type": "category",
"position": "bottom",
"data": [
"",
"",
"HK Biz"
],
"axisLabel": {
"color": "#ffffff",
"fontSize": 12,
"lineHeight": 16
}
}
],
yAxis: [
{
type: 'value'
}
],
series:[
{
"name": "USD",
"type": "bar",
"barWidth": 22,
"xAxisIndex": 0,
"data": [
1000000000015.99
]
},
{
"name": "USD",
"type": "bar",
"barWidth": 22,
"xAxisIndex": 1,
"data": [
"",
999999999999.99
]
},
{
"name": "USD",
"type": "bar",
"barWidth": 22,
"xAxisIndex": 2,
"data": [
"",
"",
999999999999.99
]
},
{
"name": "EUR",
"type": "bar",
"barWidth": 22,
"xAxisIndex": 0,
"data": [
1080699999999.91
]
},
{
"name": "CNY",
"type": "bar",
"barWidth": 22,
"xAxisIndex": 1,
"data": [
"",
1408400000000
]
},
{
"name": "CNY",
"type": "bar",
"barWidth": 22,
"xAxisIndex": 2,
"data": [
"",
"",
1408400000000
]
},
{
"name": "Others(US $)",
"type": "bar",
"barWidth": 22,
"xAxisIndex": 1,
"data": [
"",
2115000000000
]
}
]
};
- OS:
- Browser:
- Framework:
Version
5.5.0
Link to Minimal Reproduction
无
Steps to Reproduce
未铺满div
Current Behavior
配置grid后,出现未填充满div问题
Expected Behavior
这样写是为了过滤为0的数据,不进行占位
现在解决了这个问题 出现了占不满div的问题
Environment
Any additional comments?
No response