How can I dynamically set the minimum slice percentage on a pie chart?

0

I noticed when using Jasper Studio they give you the option to set the minimum slice percentage to be shown in your report. What I desire however is to make this dynamic via a parameter to be sent to jasper reports. The source of jrxml shows this value declared like so:

<pieDataset minPercentage="2.0">

I suspect that parameters cannot be used in the normal way for this and so have looked into using chart customizers but to no avail.

public class PieChartCustomiser implements ChartCustomizer { public void customize(JFreeChart chart, ChartComponent chartComponent) { PiePlot piePlot = (PiePlot) chart.getPlot(); ...

Searching around for more info on this seems to return a blank so any help is appreciated.

Thanks.

adamletch's picture
Joined: Oct 27 2014 - 3:53am
Last seen: 2 years 1 month ago

0 Answers:

No answers yet
Feedback