GobyDot
GobyDot

Reputation: 483

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

Upvotes: 3

Views: 1881

Answers (1)

user20432
user20432

Reputation: 107

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

Upvotes: 2

Related Questions