You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "echarts-bot[bot] (via GitHub)" <gi...@apache.org> on 2023/06/20 09:37:01 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #18785: [Feature] Tooltip 的 `valueFormatter` 支持完整的 series 参数回传

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