sjcobb commented on PR #20910:
URL: https://github.com/apache/echarts/pull/20910#issuecomment-2905482498

   > Hi, based on this PR. How can we get the raw value/total value so that we 
can customize the datalabel/tooltip with 
[label.formatter](https://echarts.apache.org/en/option.html#series-bar.label.formatter)/[tooltip.formatter](https://echarts.apache.org/en/option.html#tooltip.formatter)?
   
   Raw value is still included and the normalized value was added in series 
label and tooltip formatter as `percent` (I reused this since it was already in 
[types](https://github.com/apache/echarts/blob/1d0603fe492fc10ced8a48631de5a18f1d5a011e/src/util/types.ts#L705)
 from 'pie' series), example:
   
   
https://github.com/apache/echarts/blob/1d0603fe492fc10ced8a48631de5a18f1d5a011e/test/percent-stack.html#L182-L187
   
   <img width="1642" alt="image" 
src="https://github.com/user-attachments/assets/49d261ed-8a75-4f86-bfbf-914e9b5cccf5";
 />


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