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

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   
https://echarts.apache.org/examples/en/editor.html?c=line-smooth&code=DYUwLgBADgTiUgHYBMBiB7GBbAhmAymDAJaIDmAzhALwQDeAUBBAAwBcEARACScA0TCAEYOnQDUEnBgF8GDdFDDF0iGvUEAPAILriFDo2bMwATwQcA5AGM8IMpmPmBhiMjw4OAbXMBZZY4jmACoAriD-5gDqIMjhgQAWweGoJOH4eKnBiOYAuoJSThBg6OjAilD6gkYkZGQgMBY4OhSOlRAAZpi4YGB1HG2ZlorKABRQODA4WBQAlAbOhqCQ6MFgUCuqnJwA3K3OixDGAGo4wDvzEACQHTAQw_vEqmMTUwB0oORgcRAAtMJbEA8AHy0Fj_Yjfb7TNQXGEwo4nR7jSYUDzEbIvABuJ1CHiE2R2sJhy1W62oDEJRJWa0gAGpyRTzAAeABGMAA9IDzBA6RSLk9kaj0RQ6sQQBQAHKTEDcriiGX8qaCzHYkAvIoAGXQ1lAhBI5GG03pMJk5zgYGCMBUxOprRNEHygmM2l0njmRlMIAsWOAoRaMMaunVOGZIGAFVhFDi6AA7hwiKEBLC4sRkCAAPIYurAHDlQowBNGyMx7yNIMhsN5guw65dHr1doDIYqYbe0JQxiEs0WlTmbhcmkQVuqjVak4gXWkMgGo0O2G4GBkUgcAAs9IdzHXamcJjMASHLWcJ2IZEQgWIlgA1npKyACswAxQy6HwzCi7Gb4mYcnUxmszm4_mt6FlG0YluoT4VvGQHVp0eB1n0jZKM2Q7tkaFxdpaXASDKQ5qugmrauORCTtOsKzjC86LogK5rgUdrZAUwokGKnitG6hiuGA7gQB4AAcABMLB8BAACcADM_HCSJLBCFJYnLsJQj8dJiliWJQnCBJLAMbshQehYwCkGEd6GBQWDFJ8AEFuciBShYiCYJ8EBSiQ1gQBQY7NLaJnMOxzCcdxuICRpQjiZJwjSbJE
 XyYpIkqdFIUAOyCTp5w7p6ASGYgxm6U6TQAJIoCA6hsLJum2VgGXmCAFryNKHmgF5zj0dIWxAA
   
   ### Steps to Reproduce
   
   1. Create a chart with 2 y axes, each with a different number format
   2. Create a tooltip with `trigger: 'axis'` 
   3. Attempt to format each number in the tooltip in the same way as each 
number's corresponding axis
   
   ### Current Behavior
   
   I can access information about the data using `params`, but this does not 
include the `yAxisIndex`. Without `yAxisIndex`, I am not able to determine 
which format to apply to the numbers in the tooltip.
   
   ### Expected Behavior
   
   `params` should include at least `yAxisIndex` since it is a property of the 
series which is being summarized in the `params`.
   
   Even though with `trigger: 'axis'`, you don't know which series is currently 
active (i.e. they are all active at once), this information can still be 
contained in `params` since it can be used to execute iterative logic over the 
information within `params`.
   
   Alternatively, if there is a way to pass arbitrary information which will 
appear in `params`, that would solve my problem (e.g., if I could pass a custom 
column into the series config and retrieve it in the tooltip formatter function 
through `params`).
   
   ### Environment
   
   ```markdown
   N/A
   ```
   
   
   ### Any additional comments?
   
   The reason I need to figure this out with `trigger: 'axis'` is that tooltips 
are not really usable with `trigger: 'item'`. Ideally, I could use trigger item 
to get tooltips displayed for individual series in a chart, but the target 
hover area is unreasonably small since it relies on symbols, and I typically 
leave symbols out of my charts for cleanliness of appearance. The only way 
around this seems to be a custom setup using events, which I would prefer not 
to do.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to