You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "w-bo (via GitHub)" <gi...@apache.org> on 2024/01/26 02:47:00 UTC

[I] [Bug] echarts 事件问题,mouseover 无法监听鼠标在图形外的区域 [echarts]

w-bo opened a new issue, #19553:
URL: https://github.com/apache/echarts/issues/19553

   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   none
   
   ### Steps to Reproduce
   
   基于项目的需求,写了一个案例
   1. 下载官网相应版本的 k 线图
   2. 通过实例监听 `mouseover` 事件,当鼠标移至图形外时,鼠标回调事件未被触发,我可以通过鼠标回调事件得到当前的 dataIndex,进一步去得到当天的数据,这就是我所需要的。
   3. 我看了以往的问题,得到了另一种方法,通过 tooltip 的 formatter 回调保存 lastIndex,进而得到需要的数据,但是我的使用环境在 uniapp 打包在小程序中进行使用,改变了使用方法,通过 renderjs,renderjs 中 formatter 的回调函数无法被传递,进而想看看有没有可以解决的方案,十分感谢!
   
   图片:
   ![Uploading Snipaste_2024-01-26_10-42-29.png…]()
   ![Snipaste_2024-01-26_10-42-40](https://github.com/apache/echarts/assets/102512859/2434c303-c42d-4a40-a46f-cb1e6e55b2c1)
   
   
   
   ### Current Behavior
   
   请见 Steps to Reproduce
   
   ### Expected Behavior
   
   请见 Steps to Reproduce
   
   ### Environment
   
   ```markdown
   - OS: window
   - Browser: chrome 120.0.6099.225
   - Framework:vue@2
   ```
   
   
   ### 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


Re: [I] [Bug] echarts 事件问题,mousemove 无法监听鼠标在图形外的区域 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19553:
URL: https://github.com/apache/echarts/issues/19553#issuecomment-3813949029

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


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


Re: [I] [Bug] echarts 事件问题,mousemove 无法监听鼠标在图形外的区域 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19553: [Bug] echarts 事件问题,mousemove 无法监听鼠标在图形外的区域
URL: https://github.com/apache/echarts/issues/19553


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


Re: [I] [Bug] echarts 事件问题,mousemove 无法监听鼠标在图形外的区域 [echarts]

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

   图片上的是 mousemove 事件,打错了


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


Re: [I] [Bug] echarts 事件问题,mousemove 无法监听鼠标在图形外的区域 [echarts]

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

   https://echarts.apache.org/handbook/zh/concepts/event#%E7%9B%91%E5%90%AC%E2%80%9C%E7%A9%BA%E7%99%BD%E5%A4%84%E2%80%9D%E7%9A%84%E4%BA%8B%E4%BB%B6


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


Re: [I] [Bug] echarts 事件问题,mouseover 无法监听鼠标在图形外的区域 [echarts]

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #19553:
URL: https://github.com/apache/echarts/issues/19553#issuecomment-1911324132

   @w-bo 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] echarts event issue, mouseover is unable to listen to the area of the mouse outside the graphic
   
   **BODY**
   
   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   none
   
   ### Steps to Reproduce
   
   Based on the needs of the project, a case was written
   1. Download the corresponding version of the candlestick chart on the official website
   2. Listen to the 'mouseover' event through the instance, when the mouse moves outside the graph, the mouse callback event is not triggered, I can get the current dataIndex through the mouse callback event, and further get the data of the day, which is what I need.
   3. I looked at the previous problem and got another method, save lastIndex through the formatter callback of tooltip, and then get the data I need, but my use environment is used in uniapp packaged in the applet, and the usage method is changed, through renderjs, the callback function of formatter in renderjs cannot be passed, and then I want to see if there is a solution that can be solved, thank you very much!
   
   Image:
   ![Uploading Snipaste_2024-01-26_10-42-29.png...]()
   ![Snipaste_2024-01-26_10-42-40](https://github.com/apache/echarts/assets/102512859/2434c303-c42d-4a40-a46f-cb1e6e55b2c1)
   
   ### Current Behavior
   
   See Steps to Reproduce
   
   ### Expected Behavior
   
   See Steps to Reproduce
   
   ### Environment
   
   ```markdown
   - OS: window
   - Browser: chrome 120.0.6099.225
   - Framework:vue@2
   ```
   
   ### 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


Re: [I] [Bug] echarts 事件问题,mousemove 无法监听鼠标在图形外的区域 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19553:
URL: https://github.com/apache/echarts/issues/19553#issuecomment-3849768799

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


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