You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/10/10 09:01:12 UTC

[GitHub] ramarro123 opened a new issue #9188: tooltip formatter when using axis trigger

ramarro123 opened a new issue #9188: tooltip formatter when using axis trigger
URL: https://github.com/apache/incubator-echarts/issues/9188
 
 
   hello,
   
   if i use a 
    chart.tooltip = {
             trigger: 'axis'
           };
   
   and
   
      chart.tooltip.formatter = function (params) {}
   
   how can i detect what's the current item on params array?
   params array have all the data from chart, so if i have 100 data, i have 100 items.
   
   i am using a dataset+line with custom renderer here, and i need to have custom formatter as well.
   
   let me know if i can detect the current index position (or the current X val from cursor, whatever better suit)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org