man_mbt Posted August 6, 2008 Share Posted August 6, 2008 I am getting decimal number on the y-axis of a bar chart as (0.5,1.0,1.5,2.0 and so on).I want whole number in place of that(1,2,3,... and so on). How is it possible??Thanks in advance.. Link to comment Share on other sites More sharing options...
man_mbt Posted August 7, 2008 Author Share Posted August 7, 2008 I am attaching problem.jpg with it. Now you will be able to visualize about my problem. Link to comment Share on other sites More sharing options...
svenn Posted August 7, 2008 Share Posted August 7, 2008 Have you tried modifying the chart property "Value axis tick label mask"? Link to comment Share on other sites More sharing options...
man_mbt Posted August 8, 2008 Author Share Posted August 8, 2008 No... can you explain me in more detail.... Link to comment Share on other sites More sharing options...
svenn Posted August 8, 2008 Share Posted August 8, 2008 Well go to the properties of you chart. I've never used this one but it looks like it would allow you to put a pattern in there for your y axis value. Link to comment Share on other sites More sharing options...
man_mbt Posted August 10, 2008 Author Share Posted August 10, 2008 No vann.. i dont get any property to customize for my problem...please guide me.. Link to comment Share on other sites More sharing options...
billa009 Posted October 16, 2008 Share Posted October 16, 2008 HI Did you figure how to do the bar chart?? I am having the same problem... can u plz help me out Link to comment Share on other sites More sharing options...
tambellini Posted September 17, 2009 Share Posted September 17, 2009 I have the same request as you all. Jasper, are you here ? Link to comment Share on other sites More sharing options...
pdcdood1 Posted December 22, 2009 Share Posted December 22, 2009 Yoo may use any valid java DecimalFormat e.g. ##### in mask Link to comment Share on other sites More sharing options...
kayakhack Posted January 8, 2010 Share Posted January 8, 2010 Same issue, but I'm working on the x-axis with a simple bar chart (iReport 3.7.0) For some reason, all categor axis label properties are being ignored (font size, font color, tick label mask, vertical tick labels) except rotation. I was able to display integers on the axis by directly selecting the properties for the source field being displayed on the x-axis and changing it's field class to integer.The y-axis labels (which are automatically generated) seem to respond to changes in the label properties as expected. Link to comment Share on other sites More sharing options...
davidkiss Posted March 23, 2012 Share Posted March 23, 2012 Making changes to the Value Axis Tick Label Mask property in the Properties view doesn't seem to make any effect. A workaround that worked for me is to edit the XML file directly, see sample below: Code:<linePlot> <plot labelRotation="-90.0"/> <valueAxisFormat> <axisFormat tickLabelMask="#,##0"/> </valueAxisFormat></linePlot> Link to comment Share on other sites More sharing options...
carol03 Posted April 10, 2012 Share Posted April 10, 2012 HI, I 've just tried your solution with tick label Mask. Unfortunately for some cases the values returned remain still unadequate. Please have a look on attached jpg you will see that this solution rounds up the existing 0,5 or ,1,5, to the following values 0, 2 . it is recommened to buy a library JFreeChart and then you can customize bar chart very easilyhttp://mdahlman.wordpress.com/2011/04/17/chart-customizers-2/ Link to comment Share on other sites More sharing options...
subashmy Posted August 14, 2014 Share Posted August 14, 2014 It's so simple, Right click on chart, go to properties, edit Properties expressions, add property net.sf.jasperreports.chart.range.axis.integer.unit and set it to true. It works. Link to comment Share on other sites More sharing options...
jasperjones999 Posted June 13, 2018 Share Posted June 13, 2018 thanks subashmy, this answer may work but we have all been trapped into not distinguishing between jasper reports via web browser and the jasper studio, MOST posts online do not help by saying which environment is being used. leading to wasted time and frustration all round. yet another classic documention fail, moderrators of this forum shoudl be activley marking each post for jasper report or jasper studio.... but they wont. 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