How to display percentages with decimals in an Epplus Pie chart?
问题 In a EPPLUS Pie chart, the percentages are rounded automatically by default, how can I display them with 2 decimals programatically (10.75 instead of 11) ? I only provide the values (integers) and the percentages are calculated automatically by the component. 回答1: Dont really see an option in EPPlus to set it - would have to be on the Serie.DataLabel object. Looks like it has to be done via XML. Here is an example of how to do it (might have to be tweaked for different chart types):