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

[GitHub] [echarts] helgasoft commented on issue #18249: [Feature] Get the fitted/calculated y value by any x value on Smooth Line Chart

helgasoft commented on issue #18249:
URL: https://github.com/apache/echarts/issues/18249#issuecomment-1421582890

   I presume you want to get y=f(x) by some mouse interaction, not in general.
   Your code uses tooltip, but tooltip will only give you coordinates of **data points** on the line.
   For coordinates on the **smooth segments** between points, use _click_ with _zRender_ - [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8tSRg2BvAsAKFrSYANgKYBcGYxAHmOQOQDGhEDA1rAIbQCeA7gBbEATsSRwGXAG4cAznQC-AGhx4qAQSoQZ5dEpWxuGrTr25YM4RGLbYAbX14sZvHgD0rgCYcwHcrYCMAAyKsABMoSGhAByRAMwh_gCcALrKzi5ePn4BikGpdhHh-bbx0cUALIqhscUArLkpqQ4uYNwgZLB0zNDEdGkuLjIAtsDAYPzkYEIArsTN8vpNZmCjhJAgOjgAkFtTEADm-8L0HJpyaTsAZsBCQ96UQuQAROgM8k8XWziuAFRXN3cwA9yJdptAGCg4AAKEAcIQcIYyEKQNjEMAASgw2x27lgHmIACNpodhABuWDYrawBgwGTAEgAOkIwH2ULoK3p6wZ11u92EfVgsPhiORLFYaPRpMp0iEeO8HDQQoRMlsgWSDMyHCl2B2Wxl-AgQ1EiE1tk1TOI0H241gAFpYP5ktrdRBLjC4cqLVabQA-B2Ypy6vVwgwANQ4hFmMkVHsRDLuIChsAgYAQfroAB4CT66LAANTJsAMixCKwyAByCNEBczrmz9HzhYZ0kjxFsKYZlpp-IZ3FVyWSsHRDIAVsAINA2VmhK4c-jKVsRGBpkI4JAjY3MwSZznG9xw62ZM6dvJYMRCBYsTrdUuV2vDdXOk-C0rEf3mxHZrZXyq1Z3wcAPZ9mqTqUgs15KLAPyuNsp44PI2o4PqABesqIEM3AAML8HCRZHGAABaQhQpKOCoQyMBskwYoCqC4KQrA7rCjIAb6CAwDRog36xjInaSJaRaoQAGiEP58QJDKoQAmqByxDCAa
 AYdhuEMjS0D8UIYAAGJCMAQwAAoQFQ55QugsD7KWHgAJLQPiVDkIEsCQexLHaqoMZCBYWnMt4UJgPJ74rFpRnEB4UL-Oi85mNwHleT5YB-QFjoMkFIVhRFUV4EpOGacWaIAPLgFAk5OAMeAECQOiUDQ9BUIgdAFlQeYCtw8ANdwcFmPIpHYN1pJAA)
   To find out when _mousemove_ is crossing a smooth line, take a look at code in [this answer](https://github.com/apache/echarts/issues/2941#issuecomment-1355854785).


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