0 Replies Latest reply on Aug 28, 2007 8:43 AM by sleshas

    Setting LineSeries itemRenderer

      Hello. I have a problem with programatic setting of itemRenderer in charts.
      If I want to set itemRenderer to the LineSeries I would do that so:
      <mx:LineSeries itemRenderer="mx.charts.renderers.CircleItemRenderer"/>
      But how should I set itemRendere with AS?
      I was trying to do it in different ways. This is one of them. I'm trying to set itemRenderer to the first item.

      myChart.series[0].items[0].itemRenderer = mx.charts.renderers.CircleItemRenderer;

      but I have such error message
      Type Coercion failed: cannot convert mx.charts.renderers::CircleItemRenderer$ to mx.core.IFlexDisplayObject

      And this is what I can't go through. Do you have any idea how to set itemRenderer with AS?