You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/11/14 05:31:01 UTC

[GitHub] [incubator-echarts] alex2wong commented on issue #11592: 显示折线上任意一点数据(而不是整个坐标系)

alex2wong commented on issue #11592: 显示折线上任意一点数据(而不是整个坐标系)
URL: https://github.com/apache/incubator-echarts/issues/11592#issuecomment-553731530
 
 
   > 你是想知道根据 smooth 插值后的 y?这个不支持的。
   > 根据自己的 data 数组从 x 计算出 y,然后再传到 convert
   
   我同意Ovilia 的说法,这个功能不应该由Echart 去承担,可能用的人并不多,反倒增加了复杂度。你可以在hover事件的handler 里面拿到 x,自己根据data 里面的数据,构建线性函数,去推算当时的y,然后标注到图表上。
   
   这个特定的需求可以自己实现下

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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