Search code examples
jasper-reportsireportpie-chart

How to show decimal percentage in pie charts using iReport Designer?


I have a pie chart in my report. I've set the Legend label format to {0} and the label format to {2}. I need the percentage to be decimal, but I don't know what I have to do?

It would be great if someone can help me.


Solution

  • No Chance.

    Two solutions possible:

    1) Create a chart customizer: http://community.jaspersoft.com/questions/539659/how-show-percentage-decimal-value-pie-chart

    2) Query the percentage with the data from your datasource (or calculate in a variable), then use the label expression instead of label format