raffimd Posted August 18, 2006 Share Posted August 18, 2006 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 More sharing options...
raffimd Posted August 21, 2006 Author Share Posted August 21, 2006 All, Is this a bug?Did anyone face this problem? Problem:Pie chart shrinks with more data points because of legend. Thanks,Raffi Link to comment Share on other sites More sharing options...
teodord Posted August 23, 2006 Share Posted August 23, 2006 Hi, I don't think there is anything we can do about it.We draw the chart on a limited area defined by the element in JRXML. Charts have to fit inside there. Thank you,Teodor Link to comment Share on other sites More sharing options...
raffimd Posted September 10, 2006 Author Share Posted September 10, 2006 Hi Teodor, Thanks for the response.Is it possible to make the legend to grow outwards and make some behavious like stretch with overflow? Thanks,Raffi Link to comment Share on other sites More sharing options...
bklawans Posted September 11, 2006 Share Posted September 11, 2006 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 More sharing options...
raffimd Posted September 14, 2006 Author Share Posted September 14, 2006 Hi Barry, Thanks for the idea. Let me try those options.Raffi Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now