I had created the pie chart using dynamic jasper API 3.1.9. The output of the program is showing the sections with name only. I want to display the percentage of each section in pie chart.

What are the additional elements to add or set so that my chart will display percentage?

有帮助吗?

解决方案

Try this

I gave the current version (3.0.13) a try and solved my problem using the setLabelFormat in the DJPieChartBuilder. I used the following format "{0}\n {2} ({1})", where 0 is the expression of the PropertyColumn set in "SetKey(...)", 1 the absolute value and 2 the relative value. Maybe this could be useful to others.

This was on dynamic jasper forum http://dynamicjasper.com/forum/viewtopic.php?f=8&t=23

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top