Jump to content
Changes to the Jaspersoft community edition download ×

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


Recommended Posts

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">[/code]

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(); ...[/code]

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


Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...