Jump to content
Changes to the Jaspersoft community edition download ×

Dynamic rectangles


klaytoncbrito

Recommended Posts

Hi,

 

I'd like to know if there is a way to make rectangles with dynamic size by parameter/field value, my scenario is a kind of a graph where each segment of a bar represent a percentage, and I hoped to use rectangles but I haven't found any way to set their sizes (or any solution that could help me to do anything similar):
converted-file.png.58017775fa21511c7219e809b25f5d6c.png

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

The short answer is no - the height/width properties of the rectangle element are static in the JRXML, they cannot change at report runtime. 

However, there are chart types that can generate something very similar, the immediate one that comes to mind is the stacked bar chart. The highcharts (premium) version can give you something very close to what you're trying to do. The free jasper version can generate the bar, but I'm not sure about the overlaying %s. Your options here are based on whether or not you have a Tibco license to use the premium chart types. 

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