Jump to content
Changes to the Jaspersoft community edition download ×

Pie Chart Shrinks - Help please...


raffimd

Recommended Posts

Hi,

I have a report, which inturn has 2 subreport, each one has a pie chart in it. I have enabled the legend in the pie chart.

When the data points increases, the legend area grows and the pie chart shrinks...:(

 

Is there any way to mention in the jasper report, so that the pie chart does not shrink and allow the legend to grow outwards instead of growing inwards.

 

Thanks in advance...

Raffi

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

Unfortunately the behavior you describe (legend grows, so the pie shrinks) is the way JFreeChart behaves. One workaround is to turn the legend off for the pie and then create a subreport with the same data as the pie and place it next to the pie as the legend.

 

You can also try making the chart area siginificantly wider than it is tall, so the size of the pie is determined by the height and there is plenty of room off to the side for the legend.

 

-Barry

Link to comment
Share on other sites

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...