Jump to content
Changes to the Jaspersoft community edition download ×

How to place labels on top of bars with some space in bar chart?


daad.madhusudan

Recommended Posts

I am working on a jasper report which generates a bar chart. My chart looks like this:

bar1.PNG.34a033e428d6dc8999aa383004206da2.PNG

I am putting labels on top of bar using this line of code in my customizer class:

categoryPlot.getRenderer().setBasePositiveItemLabelPosition(new ItemLabelPosition(ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER));

Now I want to increase the gap between top of bar and labels. How can I achieve this?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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