You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Ovilia (via GitHub)" <gi...@apache.org> on 2023/06/13 06:28:56 UTC

[GitHub] [echarts] Ovilia commented on pull request #18715: feat(tooltip): inject tooltip position in formatter and data params's point coordinates

Ovilia commented on PR #18715:
URL: https://github.com/apache/echarts/pull/18715#issuecomment-1588626789

   If you want to provide the position, I think it may be a better idea to be the position of the mouse position relative to the canvas top-left corder. Your current code seems to return the `x` and `y` of the interacted element, which may not be necessarily be the top-left of the interacted element because it's used for transforming.
   
   Element states are defined in https://github.com/apache/echarts/blob/master/src/util/types.ts#L650 
   
   Please also simplify your test case data and remove the unnecessary data.


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