Jump to content

Dynamic resizing of charts width and height


newToJasper

Recommended Posts

In web application, user can customize page to show number of charts (developed using jasperreports) as per requirements. To utilize available space, we need to change size (height / width) dynamically of chart.

I checked forums and found information about alter design as well other alternaive to load jasperdesign, make modifications, recompile and fill.

I can not use alter design approach as Jasper API does not provide method to update height. I can change width / X,Y positions etc.

So I tried Jasper design which is also not allowing me change chart element height in summary band. Is there a way to modify chart height?

I appreciate immediate reply as I need to demo this to top management.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I found solution but still some issues are not able to solve. I am using JasperAPI, JRXMLLoader to load JasperDesign. Then iterating all elements setting required height and width. At last compile jasperdesign using JasperCompileManager.

This works for single charts. But for MultiAxisChart I need to set plot to JRDesignChart which can not be done.

Does anyone found solution to add MultiAxisPlot in chart using jasper API?

 

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