You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/03/12 08:36:26 UTC

[GitHub] [echarts] qwerty920125 opened a new issue #14458: 当横纵轴类型均为value时,设置stack后数据异常

qwerty920125 opened a new issue #14458:
URL: https://github.com/apache/echarts/issues/14458


   
   ### Version
   4.9.0
   
   ### Steps to reproduce
   ```javascript
   option = {
   	xAxis: {
   		type: 'value'
   	},
   	yAxis: {
   		type: 'value'
   	},
   	dataset: [{
   		source: [{
   			"time": 0,
   			"survival": 1,
   			"lower": 1,
   			"upper": 1,
   			"diff": 0,
   			"offset": 0,
   			"nrisk": 224
   		}, {
   			"time": 0.0025,
   			"survival": 1,
   			"lower": 1,
   			"upper": 1,
   			"diff": 0,
   			"offset": 0,
   			"nrisk": 223
   		}, {
   			"time": 0.016666666666666666,
   			"survival": 1,
   			"lower": 1,
   			"upper": 1,
   			"diff": 0,
   			"offset": 0,
   			"nrisk": 222
   		}],
   		dimensions: ['time', 'survival', 'lower', 'upper', 'nrisk', 'diff', 'offset']
   	}],
   	series: [{
   		datasetIndex: 0,
   		name: 'groupName_L',
   		type: 'line',
   		step: 'start',
   		encode: {
   			x: 'time',
   			y: 'lower'
   		},
   		itemStyle: {
   			color: '#333'
   		},
   		areaStyle: {
   			color: '#333'
   		},
   		stack: 'groupName',
   		symbol: 'none'
   	}, {
   		datasetIndex: 0,
   		name: 'groupName _U',
   		type: 'line',
   		step: 'start',
   		encode: {
   			x: 'time',
   			y: 'upper'
   		},
   		itemStyle: {
   			color: '#ccc'
   		},
   		lineStyle: {
   			opacity: 0
   		},
   		areaStyle: {
   			color: '#ccc'
   		},
   		stack: 'groupName',
   		symbol: 'none'
   	}]
   };
   ```
   
   ### What is expected?
   绘制上下两条线,之间的区域染成指定颜色,应与xAxis.type='catrgory'的结果类似
   ![期望结果](https://user-images.githubusercontent.com/4928881/110914130-ee166700-8350-11eb-9493-26498996424d.png)
   
   ### What is actually happening?
   后叠加的数据同时变动了x和y的值,导致原本同一个x值对应的两个点不在同一个垂直线上
   ![当前结果](https://user-images.githubusercontent.com/4928881/110914113-e6ef5900-8350-11eb-8c81-35b4c5db261e.png)
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. 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



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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14458: 当横纵轴类型均为value时,设置stack后数据异常

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14458:
URL: https://github.com/apache/echarts/issues/14458#issuecomment-797328665






----------------------------------------------------------------
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



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