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

[GitHub] [echarts] wyzhang0401 opened a new issue, #18460: [Feature] xAxisModels: containPoint is not supported

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

   ### What problem does this feature solve?
   
   通过myChart.containPixel({ xAxisId: '' }, [])判断像素点在xAxis域
   
   ### What does the proposed API look like?
   
   通过myChart.containPixel({ xAxisId: '' }, [])判断像素点在xAxis域
   
   https://echarts.apache.org/zh/api.html#echartsInstance.containPixel


-- 
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] mnischay commented on issue #18460: [Feature] xAxisModels: containPoint is not supported

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

   any update on this ? @helgasoft 


-- 
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] helgasoft commented on issue #18460: [Feature] xAxisModels: containPoint is not supported

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

   Seems like a **bug** to me, [containPixel](https://echarts.apache.org/en/api.html#echartsInstance.containPixel) does not work for _xAxis_, but does for _grid_.
   [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXLANpKxrqwQAmRA5BgIx0A0F6YAniAKb0DGAQzA8A5sABOnVu1jVhgosToBZGK1h0AKgFceGugHUe1A1oAWOgwDEJEAwGVhjndDoBdCgF93bdJxx8IlRKWC5eegA3QQAbPTpvP1g8HjseQhJZENC5BSVGAFYABhZYACYAZhLysoAWUrLGAA5SxgqC1tqAdgaANiLfWQ5uPk0YiGh9WS8KTy8AbhQAW04AYXNBCTAAOlEeMAAtCQAKAEptmGO6fnH-AGsNWGOQU4QAPmQKfhg8MFgQEAQDAIEggC4AM3BKTAAA1SmDgJDoQBNdyLdAAegxACMQSt1psdt9oGBBBMAApAngxK6iOymeGAjCndGwLG4xD4jZbbbE0kUqk0hiBPAaAFAlkUDmwLmE3kwfnQSkYanHJDYXB4ACS0GoPAwBCKXkZEtZxLwwBiPG2MWAomO2IA1HRNI7xczFl4WUA)


-- 
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] [Feature] xAxisModels: containPoint is not supported [echarts]

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

   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] [Feature] xAxisModels: containPoint is not supported [echarts]

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

   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


[GitHub] [echarts] echarts-bot[bot] commented on issue #18460: [Feature] xAxisModels: containPoint is not supported

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

   @wyzhang0401 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>
   
   **BODY**
   
   ### What problem does this feature solve?
   
   The pixel is in the xAxis domain by myChart.containPixel({ xAxisId: '' }, []).
   
   ### What does the proposed API look like?
   
   The pixel is in the xAxis domain by myChart.containPixel({ xAxisId: '' }, []).
   
   https://echarts.apache.org/zh/api.html#echartsInstance.containPixel
   </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] [Feature] xAxisModels: containPoint is not supported [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #18460: [Feature] xAxisModels: containPoint is not supported
URL: https://github.com/apache/echarts/issues/18460


-- 
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] [Feature] xAxisModels: containPoint is not supported [echarts]

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

   any update on this ?


-- 
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] helgasoft commented on issue #18460: [Feature] xAxisModels: containPoint is not supported

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

   I'm not fixing bugs yet, focus on helping with API solutions.
   As already mentioned, _containPixel_ **works** for grid.
   ```
   myChart.getZr().on('click',  (p) => {
     const ppix = [p.offsetX, p.offsetY];
     b = myChart.containPixel('grid', ppix);  // works for inside/outside of chart
     // console.log(b+' '+ppix);
   });
   ```
    true = inside chart-area, false = on X/Y axes, no response = out of canvas


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