tangqinGiser opened a new issue #8116: 
大数据图层无法显示tooltip提示框,LargeLineShape.findDataIndex()因参数缺失无法返回dataIndex.
URL: https://github.com/apache/incubator-echarts/issues/8116
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   当前用最新版的echarts创建一个大数据图层,尝试添加 tooltip 
一直没显示,跟代码到LargeLineShape.findDataIndex(),因参数确实无法返回 
dataIndex,尝试补足参数后成功显示tooltip。请问是否为echarts缺陷?
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
           animation: false,
           progressive: 20000,
           GLMap: {
               roam: true
           },
           title: {
               text: '北京道路网络图',
               subtext: '200万数据点绘制',
               left: 'center',
               textStyle: {
                   color: '#fff'
               }
           },
           tooltip: {
               trigger: 'item',
           },
           coordinateSystem: 'GLMap',
           series: [{
               name: 'beijingRoads',
               type: 'lines',
               blendMode: 'lighter',
               coordinateSystem: 'GLMap',
   
               dimensions: ['value'],
               zlevel: 1,
               data: new Float64Array(),
               polyline: true,
               large: true,
   
               lineStyle: {
                   color: 'orange',
                   width: 2,
                   opacity: 0.3
               },
               tooltip: {
                   trigger: 'item',
                   formatter: function (params, ticket, callback) {
                       map.getCanvas().style.cursor = 'pointer';
                       return '第' + params.dataIndex + '个数据。';
                   }
               },
           }]
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   
![image](https://user-images.githubusercontent.com/30792630/38476069-87ace820-3bde-11e8-8093-199bc30fcf8c.png)
   
   
![image](https://user-images.githubusercontent.com/30792630/38476045-5f1ebb90-3bde-11e8-989a-1fb266bb5b60.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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to