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

   @geekpeng 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] How to display data at the bottom of the tooltip for summary or 
other additional calculations
   
   **BODY**
   
   ### What problem does this feature solve?
   
   After using 5.3, use valueFormatter to display the data that is convenient 
to format and display series
   
   But when you need to do some folding and expansion display: as shown in the 
figure below, you need to display the summary of the data at the bottom of the 
tooltip.. The average value is formatted at the top of the tooltip to display 
the date, so you have to give up using valueFormatter and use the original 
formatter method
   
   
   <img width="393" alt="image" 
src="https://user-images.githubusercontent.com/5426866/204747098-c42ec56d-ac47-406c-953f-f751723f4b39.png";>
   
   
   
   ### What does the proposed API look like?
   
   
   I hope that some methods can be added to handle the display of the head and 
bottom
   
   tooltip: {
       trigger: 'axis',
       headerFormatter: header => `${new Date(header).toDateString()}`,
       valueFormatter: value => `${value.toFixed(2)}`,
       footerFormatter: params => {
             //do process calculate summary data
       }
     }
   </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