You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "hongdeyuan (via GitHub)" <gi...@apache.org> on 2023/01/30 10:48:20 UTC

[GitHub] [echarts] hongdeyuan opened a new issue, #18213: [Bug] 联动过个折线图时,在垂直方向无法联动

hongdeyuan opened a new issue, #18213:
URL: https://github.com/apache/echarts/issues/18213

   ### Version
   
   5.3.0
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   1.多个折线图开启联动;
   2.hover 垂直移动鼠标时,在垂直方向;其他折线图的tooltip 无法跟随鼠标一起上下移动;
   
   ### Current Behavior
   
   When multiple line charts are linked, the vertical position of tooltip of all charts cannot follow the mouse movement;
   
   ### Expected Behavior
   
   1.希望在垂直移动其中一个折线图时,其他的折线的tooltip 也能在垂直方向移动;
   
   ### Environment
   
   _No response_
   
   ### Any additional comments?
   
   _No response_


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] hongdeyuan commented on issue #18213: [Bug] 联动多个折线图时,tooltip 在垂直方向的位置无法联动

Posted by "hongdeyuan (via GitHub)" <gi...@apache.org>.
hongdeyuan commented on issue #18213:
URL: https://github.com/apache/echarts/issues/18213#issuecomment-1411961446

   > > 期望的效果是怎么样的?在我看来另一个图表中 tooltip 垂直方向上移动有点不符合预期,请问为什么希望另一个图表的也动呢?以什么标准动呢?
   > 
   > 非常感谢您 @Ovilia 的回复!这可能不是 bug ,而是 echarts 内部实现如此;但在垂直方向同步移动其他图表的 tooltip 是否可以当成 tooltip 一个特性支持呢?因为看到其他图表库有支持垂直方向同步移动 tooltip 的功能;见下图:
   > 
   > ![20230201200007_rec_](https://user-images.githubusercontent.com/37143703/216037326-74c35998-4ed7-4c47-b7e3-fdf6f99a06f4.gif) [ ![20230201200007_rec_](https://user-images.githubusercontent.com/37143703/216037326-74c35998-4ed7-4c47-b7e3-fdf6f99a06f4.gif) ](https://user-images.githubusercontent.com/37143703/216037326-74c35998-4ed7-4c47-b7e3-fdf6f99a06f4.gif) [ ](https://user-images.githubusercontent.com/37143703/216037326-74c35998-4ed7-4c47-b7e3-fdf6f99a06f4.gif)
   
   为什么需要支持这个特效原因:
   1. 当图表高度比较矮的情况,如果其他的图表的 tooltip 在垂直方向不跟随移动的话,目标图表的 tooltip 很有可能挡住其他图表的tooltip 的情况;这种交互体验感觉不是特别棒; 


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #18213: [Bug] 联动过个折线图时,在垂直方向无法联动

Posted by echarts-bot.
echarts-bot[bot] commented on issue #18213:
URL: https://github.com/apache/echarts/issues/18213#issuecomment-1408396166

   @hongdeyuan It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] When linking a line chart, it cannot be linked vertically
   
   **BODY**
   
   ### Version
   
   5.3.0
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   1. Enable linkage of multiple line charts;
   2. When hover moves the mouse vertically, it is in the vertical direction; the tooltip of other line charts cannot move up and down with the mouse;
   
   ### Current Behavior
   
   When multiple line charts are linked, the vertical position of tooltip of all charts cannot follow the mouse movement;
   
   ### Expected Behavior
   
   1. It is hoped that when one of the line charts is moved vertically, the tooltips of other line charts can also move vertically;
   
   ### Environment
   
   _No response_
   
   ### Any additional comments?
   
   _No response_
   </details>


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] hongdeyuan commented on issue #18213: [Bug] 联动多个折线图时,tooltip 在垂直方向的位置无法联动

Posted by "hongdeyuan (via GitHub)" <gi...@apache.org>.
hongdeyuan commented on issue #18213:
URL: https://github.com/apache/echarts/issues/18213#issuecomment-1411948545

    非常感谢您的回复!这么看来,或许在垂直方向也可以同步移动算一个 tooltip 特性;偶然看到其他图表库有支持垂直方向同步移动的功能;见下图:
    
   ![20230201200007_rec_](https://user-images.githubusercontent.com/37143703/216037326-74c35998-4ed7-4c47-b7e3-fdf6f99a06f4.gif)
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] hongdeyuan commented on issue #18213: [Bug] 联动多个折线图时,tooltip 在垂直方向的位置无法联动

Posted by "hongdeyuan (via GitHub)" <gi...@apache.org>.
hongdeyuan commented on issue #18213:
URL: https://github.com/apache/echarts/issues/18213#issuecomment-1413467507

   > > 如果其他的图表的 tooltip 在垂直方向不跟随移动的话,目标图表的 tooltip 很有可能挡住其他图表的tooltip 的情况
   > 
   > 那应该是提“多个图表的 tooltip 不重叠”比较合适。就上面的例子来说,如果 tooltip 高度比较大,不管另一个图表的 tooltip 会不会跟着动,还是存在遮挡问题,这个功能并不能彻底解决你的问题。
   
   感谢您 @Ovilia  的回复;提“多个图表的 tooltip 不重叠” 确实比较合适,不知道您有什么好的建议去解决这种问题吗?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] hongdeyuan commented on issue #18213: [Bug] 联动多个折线图时,tooltip 在垂直方向的位置无法联动

Posted by "hongdeyuan (via GitHub)" <gi...@apache.org>.
hongdeyuan commented on issue #18213:
URL: https://github.com/apache/echarts/issues/18213#issuecomment-1413466677

   感谢您的回复;提“多个图表的 tooltip 不重叠” 确实比较合适,不知道您有什么好的建议去解决这种问题吗?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] hongdeyuan commented on issue #18213: [Feature] 联动多个折线图时,多个图表的 tooltip 不重叠;

Posted by "hongdeyuan (via GitHub)" <gi...@apache.org>.
hongdeyuan commented on issue #18213:
URL: https://github.com/apache/echarts/issues/18213#issuecomment-1418636954

   > 是 feature 不是 bug 哈。
   > 
   > 大致思路是给 echarts 的 tooltip 增加某种特殊的 class,新增一个配置项,如果开启了避免重叠的配置项,就调整位置。调整的逻辑可以参考现在 tooltip 在 [confine](https://echarts.apache.org/zh/option.html#tooltip.confine) 的情况下如何避免超出画布范围的算法。
   > 
   > 这种比较小场景的需求,建议自己提 PR 实现,等社区贡献的话可能短期内没有人来支持。贡献方式参见 [wiki](https://github.com/apache/echarts/wiki)
   
   
   非常感谢 @Ovilia  您的建议,我会参考你的建议:“自己提 PR 实现该特性”,


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] hongdeyuan commented on issue #18213: [Feature] 联动多个折线图时,多个图表的 tooltip 不重叠;

Posted by "hongdeyuan (via GitHub)" <gi...@apache.org>.
hongdeyuan commented on issue #18213:
URL: https://github.com/apache/echarts/issues/18213#issuecomment-1418636669

   > 
   
   非常感谢 @Ovilia  您的建议,我会参考你的建议:“自己提 PR 实现该特性”,


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] Ovilia commented on issue #18213: [Bug] 联动多个折线图时,多个图表的 tooltip 不重叠;

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18213:
URL: https://github.com/apache/echarts/issues/18213#issuecomment-1415351905

   是 feature 不是 bug 哈。
   
   大致思路是给 echarts 的 tooltip 增加某种特殊的 class,新增一个配置项,如果开启了避免重叠的配置项,就调整位置。调整的逻辑可以参考现在 tooltip 在 [confine](https://echarts.apache.org/zh/option.html#tooltip.confine) 的情况下如何避免超出画布范围的算法。
   
   这种比较小场景的需求,建议自己提 PR 实现,等社区贡献的话可能短期内没有人来支持。贡献方式参见 [wiki](https://github.com/apache/echarts/wiki)


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] Ovilia commented on issue #18213: [Bug] 联动多个折线图时,tooltip 在垂直方向的位置无法联动

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18213:
URL: https://github.com/apache/echarts/issues/18213#issuecomment-1411521788

   期望的效果是怎么样的?在我看来另一个图表中 tooltip 垂直方向上移动有点不符合预期,请问为什么希望另一个图表的也动呢?以什么标准动呢?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] Ovilia commented on issue #18213: [Bug] 联动多个折线图时,tooltip 在垂直方向的位置无法联动

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18213:
URL: https://github.com/apache/echarts/issues/18213#issuecomment-1413201494

   > 如果其他的图表的 tooltip 在垂直方向不跟随移动的话,目标图表的 tooltip 很有可能挡住其他图表的tooltip 的情况
   
   那应该是提“多个图表的 tooltip 不重叠”比较合适。就上面的例子来说,如果 tooltip 高度比较大,不管另一个图表的 tooltip 会不会跟着动,还是存在遮挡问题,这个功能并不能彻底解决你的问题。


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org