echarts-bot[bot] commented on issue #18785:
URL: https://github.com/apache/echarts/issues/18785#issuecomment-1598446095

   @qmhc 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>
   
   **TITLE**
   
   [Feature] Tooltip's `valueFormatter` supports complete series parameter 
return
   
   **BODY**
   
   ### What problem does this feature solve?
   
   Now I have a legend with two series, one of which is a bar chart 'bar' and 
one is a line chart 'line', where the bar chart represents a specific value 
(million yuan) and the line chart represents progress (%).
   
   When you want to keep the appearance of the original Tooltip and format only 
'value' with units, because the units of the two series are different, but the 
callback function using 'valueFormatter' only contains 'value', it is 
impossible to determine the series in which the current value is located.
   
   ### What does the proposed API look like?
   
   You can consider adding a second optional parameter and passing the 
corresponding full series parameter to enhance customizability while keeping 
the original API intact.
   </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: [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