sasi86 Posted September 7, 2010 Share Posted September 7, 2010 Dear All, I am using ireport 3.5.1 version. I have designed the data. For that I have set the chart property for control the 'Y'axis value as, Property Name : net.sf.jasperreports.chart.range.axis.tick.interval Property Value expression : Integer.toString ( ( $F{count}.intValue() < 10 ) ? 1:10 ) If the 'y' axis value is below 10 then the y axis value intervale increment by 1. In the expression I can able to use only the ternary condition. But I want to use like 'If' condition. For example, If the field vale count below ten then the interval should be set as 1. If more than 10 count then i want to set as default chart take care. It is like, Integer.toString ( ( $F{count}.intValue() < 10 ) ? 1:<chart default setting> ) 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