Hi, i want to apply condition in chart, for eg; if a<50 den colour of bar should be red,50<a<90 den colour should be yellow and a>90then it should be green.for this i had applied a conditional statement just for red and green colour. ($F{A} .doubleValue() < new java.math.BigDecimal(90.0).doubleValue() ? "FF3333":"FF0000") But it checks for only the first entry coming from the database and leaves the rest data entries. so,what to do,should use loop and if yes them how to use loop. Plz help asap.