You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/04/25 02:59:49 UTC

[GitHub] [incubator-echarts] WebsonLeo opened a new issue #10359: line图在x轴为数据轴,y轴为类目轴,并设置stack以及toolbox的datazoom时,显示有问题

WebsonLeo opened a new issue #10359: line图在x轴为数据轴,y轴为类目轴,并设置stack以及toolbox的datazoom时,显示有问题
URL: https://github.com/apache/incubator-echarts/issues/10359
 
 
   ### 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,导致线的部分没有在坐标系内画出来
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org