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/07/04 06:50:41 UTC

[GitHub] [incubator-echarts] peter-wang-wsl opened a new issue #10802: echarts gl更改series类型为map3D的data的itemStyle,会导致其后的series类型为scatter3D的data的itemStyle也随之更改

peter-wang-wsl opened a new issue #10802: echarts gl更改series类型为map3D的data的itemStyle,会导致其后的series类型为scatter3D的data的itemStyle也随之更改
URL: https://github.com/apache/incubator-echarts/issues/10802
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   1、option示例
   ```
   	                    series: [{
   	                        type : 'map3D',
   	                        zlevel : -10,
   	                        itemStyle: {
   	                            borderWidth: 1,
   	                            borderColor: '#2accfd',  
   	                            color:'#09222a'
   	                        },
   	                        emphasis: {  
   	                            label: {
   	                                show: true,
   	                                textStyle: {
   	                                    color: '#fff',
   	                                    fontFamily : 'Microsoft YaHei',
   	                                    fontSize: 15,
   	                                    backgroundColor: 'rgba(0,23,11,0)'
   	                                }
   	                            },
   	                            itemStyle : { 
   	                                color: 'rgba(1,101,101,0.8)',  // hover颜色
   	                                opacity: 0.8  // hover透明度
   	                            }
   	                        }
   	                    },{
   	                        type : 'scatter3D',
   	                        coordinateSystem :'geo3D',
   	                        symbol : 'pin',
   	                        zlevel : 10,
   	                        itemStyle : { 
   	                        	   color : rgba(255,248,57,0.75);
   	                        	}
   	                    }
   	                    ]
   ```
   2、直接更改map3D颜色
   ```
   option.series[0].data[index].itemStyle= {color: 'rgba(1,101,101,1)'}
   chart.setOption(option);
   ```
   
   ### What is expected?
   只更改series类型为map3D的data的itemStyle
   
   ### What is actually happening?
   同时更改了其后的series类型为scatter3D的data的itemStyle
   
   ---
   echarts gl的版本是1.1.1
   
   <!-- 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