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

   ### What problem does this feature solve?
   
   在使用 5.3之后 使用 valueFormatter 可以显示方便去格式化显示series的数据
   
   但是在需要做一些折扩展显示: 如下图  需要在 tooltip 底部显示数据的汇总 ..  平均值   在tooltip 
的顶部格式化显示日期就不得不放弃使用 valueFormatter 而需要使用原来的 formatter 方法
   
   
   <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?
   
   
   希望可以增加一些方法来处理 头部跟底部的 显示
   
   tooltip: {
       trigger: 'axis',
       headerFormatter: header => `${new Date(header).toDateString()}`,
       valueFormatter: value => `${value.toFixed(2)}`,
       footerFormatter: params => {
             //do process 计算汇总数据
       }
     }


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