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 2019/11/21 19:59:16 UTC

[GitHub] [incubator-echarts] SalCat opened a new issue #9906: No way to bring up ECharts-GL tooltip on mobile device

SalCat opened a new issue #9906: No way to bring up ECharts-GL tooltip on mobile device
URL: https://github.com/apache/incubator-echarts/issues/9906
 
 
   <!--
   Thanks for choosing ECharts!
   感谢使用 ECharts!
   
   It's highly recommended to use English in issues, to help others having the same problem in the future.
   加入 Apache 开源基金会后,我们有了更多国外的用户。为了方便社区用户,强烈建议在 issue 中使用英文。
   
   Please check the following questions to let our bot help.
   GL 请回答以下问题,以帮助我们的机器人维护 issue。
   
   To check the option, add x in [ ], e.g.: [x] I am ...
   勾选的方式:在 [ ] 中加入 x,变成:[x] I am ... 的形式。
   
   - [ ] I am using English in this issue. 在这个 Issue 中我使用了英文(强烈建议)。
   
   -->
   
   
   ## General Questions
   
   <!-- BEGINNING OF REQUIRED FIELDS 必填项开始 -->
   
   <!--
   PLEASE MAKE SURE OF ALL THE FOLLOWING OPTIONS IN REQUIRED FIELDS ARE TICKED (with x)!
   Otherwise, the issue will not be answered.
   And think before you tick. :)
   请确保以下每项都打上勾了!并且确保都做了这些事哦~ 这将大量简化我们的工作流程,使你的问题更快速得到解答。
   
   - [ ] Required: I have read the document and examples and tried to solve it by myself. (必填)我读过了文档和教程,并且曾试图自己解决问题。
   - [ ] Required: I have searched for similar issues and that didn't help. (必填)我搜索过 issue 但是没有帮助。
   - [ ] Required: I have tried with the latest version of ECharts and still have this problem. (必填)我试过最新版本的 ECharts,还是存在这个问题。
   
   In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:
   - [ ] Required: issue type;(必填)issue 类型
   - [ ] Required: one sentence description in issue details;(必填)一句话的问题描述
   - [ ] Required: demo;(必填)能反映问题的例子(如果你想提问或报 bug)
   - [ ] Required: ECharts version;ECharts 版本
   
   -->
   
   <!-- END OF REQUIRED FIELDS 必填项结束 -->
   
   
   ## Issue Type
   
   <!-- Add `x` for the ones that is true with you, e.g.: [x] I have ... -->
   
   - [ ] I have a question to ask about *how to use ECharts to ...*;我想提问如何使用 ECharts 实现某功能
   - [ ] I have a bug to report;我想要报 bug
   - [x ] Since tooltip comes up via a mouse hover event, there’s no way to bring up tooltip on a ECharts-GL chart in a mobile device.Please enhance ECharts-GL extension so that a long press triggers the tooltip, followed by tracking the user touch.
   - [ ] I have a feature to enhance, e.g.: *The current feature should be improved in the way that ...*;我希望改进某个功能
   - [ ] There's something wrong with the documents;文档有些问题
   - [ ] Others, or I'm not sure which issue types to choose here;其他,或我不知道应该选什么类型
   
   
   ## Issue Details
   There’s currently no way to bring up a tooltip for a 3D chart using ECharts-GL extension on a mobile device.
   <!-- Use one sentence to describe what you want and what's wrong. 一句话描述问题。 -->
   
   <!-- DESCRIBE_HERE} -->
   
   
   ### Expected Behavior
   I expect that a 3D chart’s tooltip can be shown on a mobile device. Currently there’s no way to do that, since the tooltip is triggered by a mouse hover event, which doesn’t exist on a mobile device such as an iPhone or iPad. 
   
   Also I expect it to work the way other chart packages tooltips work on mobile, first you do a long touch, which triggers the tooltip to come up and then while keeping your finger down move it around and have the tooltip follow the touch. This is absolutely needed for a mobile device.
   
   You have a workaround for your 2D charts, please come up with one for your 3D charts.
   
   <!-- Add screenshots to demo if necessary. 期望的效果。 -->
   
   <!-- {DESCRIBE_HERE} -->
   
   
   ### Current Behavior
   
   <!-- Add screenshots to demo if necessary. Otherwise, replace the following line with N/A. 现在的效果。 -->
   
   <!-- {DESCRIBE_HERE} -->
   For a 3D chart on an iPhone or iPad, touch events are only used for rotating or zooming on the device. If I try to check what a particular point is on a surface or 3D bar chart, there’s no way to trigger the tooltip. This makes your 3D charts not very useful on mobile.
   
   ### Online Example
   Just bring up any of the ECharts-GL 3D demo charts on an iPhone, iPad or Android device and try to bring up a tooltip. You cannot! Try this one on an iPhone or iPad:
   https://ecomfe.github.io/echarts-examples/public/editor.html?c=simple-surface&gl=1
   
   <!-- Please use jsfiddle.net or gallery.echartsjs.com to provide a simplest demo to show the problem. And do not upload zip demos. 请使用 gallery.echartsjs.com 提供最简单可运行的代码,请不要上传 zip 文件。 -->
   <!--
   THIS IS REQUIRED FOR ALL BUG REPORTS AND QUESTIONS!!! 如果是提问或报 bug 一定要提供这一项!
   -->
   
   <!-- {ADD_LINK_OF_DEMO_HERE} -->
   
   <!-- Please make your demo as simple as possible to help locate the problem. And paste only necessary part of code here. 提供必要的代码,不要全部粘贴。 -->
   
   <!-- {PASTE_RELATED_CODE_HERE} -->
   
   
   ## Topics
   
   <!-- Check those topics that are related. 选择相关主题。
   - [ ] Legend
   - [x] Tooltip
   - [ ] Event
   - [ ] Performance
   - [ ] SVG
   - [ ] Map
   - [x] ECharts GL
   - [ ] Third-party libraries, e.g.: Vue.js, React
   -->
   
   ## Anything Else We Need to Know
   
   <!-- You may reference other issues here. Otherwise, replace the following line with N/A.  其他我们需要知道的东西,比如引用其他 issue。 -->
   
   <!-- {DESCRIBE_HERE} -->
   
   
   ## Environment
   
   - ECharts GL - all versions
   
   - [ ] It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}
   

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org