Help needed on simple flex line chart

Dear Friends,

I need a small help on Flex Line Chart. I am using FlashBuilder 4 and doing a simple application in flex.

I am displaying a graph with 10 random values and based on the values i am trying to change the itemrenderer values like CandlestickItemRenderer and BoxItemRenderer. Now my requirement was, if the values are > 10 i want to show my chart with CandlestickItemRenderer else i want to show the remaining spots as BoxItemRenderer. I am failing to do this. Either i am getting all the shapes as BoxItemRenderer or CandlestickItemRenderer. i am sending the code as a text file along with this.

Kindly go thru it and help me out pls.

Rajesh