Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am getting decimal number in place of whole number

I am getting decimal number on the y-axis of a bar chart as (0.0, 0.5,1.0,1.5,2.0 and so on).

enter image description here

this is set a mask for the value axis labels.

<axisFormat tickLabelMask="0.0" verticalTickLabels="false">
                        <labelFont/>
                        <tickLabelFont/>
                    </axisFormat>

I want whole number in place of that (1,2,3,... and so on). How is it possible??

like image 977
GobyDot Avatar asked Dec 30 '25 08:12

GobyDot


1 Answers

its very simple

In the IReport select your bar chart and click properties then go to Properties Expressions. click add button and paste

net.sf.jasperreports.chart.range.axis.tick.interval

as "Property Name" and and set 1 as "Value". (see image below)

hope this could help.

enter image description here

like image 93
user20432 Avatar answered Jan 04 '26 03:01

user20432



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!