Jump to content

formating bar chart label


svenn

Recommended Posts

Is there a way to format the label value on the top of my bar chart. It currently reads with two decimal places. I would like to display it with only one. size=398]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/bargraph.jpg
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I just did this for a chart that uses a BigDecimal:

 

Code:

 

Got set in the right direction from [url=http://java.sun.com/j2se/1.4.2/docs/api/java/math/BigDecimal.html#ROUND_HALF_UP]http://java.sun.com/j2se/1.4.2/docs/api/java/math/BigDecimal.html#ROUND_HALF_UP

 

You may need to use something different based on your data type. Good luck!

 

Mary size=210]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/BigDecimalRound.gif

Link to comment
Share on other sites

  • 2 years later...

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