3-D plots with Plotly on mobile web get the view reset every time a button is pressed in the modebar
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
Plotly is a fantastic tool to generate a great number of plots, hence I want first of all to thank the developers for a great tool.
When drawing 3-D plots, it is useful to be able to rotate, drag and zoom in coordinated way, specially on mobile, as screen is small and some details can only be seen by an appropriate combination of these. In desktop web browser, the mouse alone enables these three navigation actions, i.e. zoom with the mouse wheel, rotate with left-click and drag, pan with right-click and drag, and the modebar works as expected, i.e. pushing the zoom button allows zooming, then selecting rotate keeps the view to rotate around the new origin, and so on. On the other hand, when viewing the same plot on a mobile web browser, where touch interaction is very limited (only single touch and drag to rotate, no two-finger to pinch zoom/drag) the only way to achieve this is with the modebar, unfortunately, it does not work as expected, as everytime one selects one of the navigation commands (zoom, pan, rotate), the view goes to the default state, hence it is not possible to combine these. It would be nice if the modebar replicated in the mobile platform the performance seen in desktop, or even better two-finger drag/pinch could be used to pan/zoom, as it is done e.g. in the google glviewer, as selecting on-screen buttons in small screens is slow and problematic.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
打开附加的 plotlyBugReport.html,并在移动 Web 浏览器中重现 3-D modebar 的行为,在 zoom、pan 和 rotate 之间切换。追踪所涉及的 Plotly Web 渲染和 modebar 入口点;完成的标准是更改命令后保留当前视图,而不是将其重置。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, python
- 领域
- data-visualization, frontend, mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100