-
Notifications
You must be signed in to change notification settings - Fork 19.8k
line图在x轴为数据轴,y轴为类目轴,并设置stack以及toolbox的datazoom时,显示有问题 #10359
Copy link
Copy link
Closed
Labels
Description
Version
4.2.1
Steps to reproduce
设置option如下:
option = {
"title": {
"text": "option传入的title"
},
"tooltip": {
"trigger": "axis"
},
"legend": {
"data": ["邮件营销", "联盟广告"]
},
"grid": {
"containLabel": true
},
"series": [{
"type": "line",
"stack": "all",
"data": [120, 132, 101, 134, 90, 230, 210],
"name": "邮件营销"
}, {
"type": "line",
"stack": "all",
"data": [220, 182, 191, 234, 290, 330, 310],
"name": "联盟广告"
}
],
"yAxis": {
"type": "category",
"data": ["周一", "周二", "周三", "周四", "周五", "周六", "周日"]
},
"xAxis": {
"type": "value",
},
"toolbox": {
"feature": {
"saveAsImage": {
"type": "jpeg",
"title": "保存保存"
},
"dataZoom": {
show:true
}
}
}
}
What is expected?
能够完整的展示线图
What is actually happening?
线图展示不完整,stack后,x轴的最大值应该在600,实际只有350,导致线的部分没有在坐标系内画出来
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.