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 2018/05/24 03:57:52 UTC

[GitHub] xuzijie1995 opened a new issue #8394: 手机端渲染的GL柱状图点击数据无法显示tooltip

xuzijie1995 opened a new issue #8394: 手机端渲染的GL柱状图点击数据无法显示tooltip
URL: https://github.com/apache/incubator-echarts/issues/8394
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   移动端渲染的GL Bar图表点击内部柱状条无法显示相应Tooltip 浮动内容,对应pc端浏览器可以
   
   
   
   
   
   ### Version & Environment [版本及环境]
   + Loaded claygl, version 1.2.1
   + Loaded echarts, version 4.1.0
   + Google Chrome 版本 66.0.3359.181(正式版本) (64 位) [浏览器类型和版本]:
   + win 8.1 x64 [操作系统类型和版本]:
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
   移动端GL图点击数据也能显示Tooltip浮动内容框
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
                          tooltip: {
   				show:true,
   				triggerOn:'click',
   				position: [10, 10],
   				textStyle:{
   				}
   			},
   			color: ['#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026'],
   			xAxis3D: {
   				name:'',
   				type: 'category',
   				data: ['12a', '1a', '2a'],
   				axisPointer:{
   					show:false
   				},
   				axisLabel:{
   				}
   			},
   			yAxis3D: {
   				name:'',
   				type: 'category',
   				data: ['Sunday'],
   				axisPointer:{
   					show:false
   				},
   				axisLabel:{
   				}
   			},
   			zAxis3D: {
   				name:'',
   				type: 'value',
   				axisPointer:{
   					show:false
   				},
   				axisLabel:{
   				}
   			},
   			grid3D: {
   				boxWidth: setFontSize(100),
   				boxDepth: setFontSize(40),
   				viewControl: {
   					// projection: 'orthographic'
   					alpha:15,
   					beta:40,
   				},
   				light: {
   					main: {
   						intensity: 1.2,
   						shadow: true
   					},
   					ambient: {
   						intensity: 0.3
   					}
   				}
   			},
   			series: [{
   				type: 'bar3D',
   				data: [[0,0,5],[0,1,1],[0,2,0]].map(function (item) {
   					return {
   						value: [item[1], item[0], item[2]],
   					}
   				}),
   				shading: 'lambert',
   				label: {
   					textStyle: {
   						borderWidth: 1
   					}
   				},
   
   				emphasis: {
   					label: {
   						textStyle: {
   							color: '#900'
   						}
   					},
   					itemStyle: {
   						color: '#900'
   					}
   				}
   			}]
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   移动手机 与 Google ChromeF12 移动模拟
   ![1](https://user-images.githubusercontent.com/25075527/40463612-cc8b872a-5f48-11e8-88d2-3dd71867c47e.png)
   pc端
   ![2](https://user-images.githubusercontent.com/25075527/40463613-cf523e86-5f48-11e8-8a63-1ace66dd4173.png)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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