2 Replies Latest reply on Mar 18, 2008 11:51 AM by CoreNeter

    setting itemRenderer from actionscript?

    CoreNeter
      How do I change the itemRenderer from actionscript?

      In mxml i would do the following:

      <mx:series>
      <mx:PlotSeries
      xField="Amount"
      yField="Expenses"
      displayName="Plot 2"
      itemRenderer="mx.charts.renderers.DiamondItemRenderer"
      radius="10"/>
      </mx:series>


      In actionscript I am doing the following:

      var seriesArray:Array=new Array();
      customseries = new PlotSeries();
      customseries.dataProvider= "myData";
      customseries.xField= "Amount";
      customseries.yField= "Expenses";
      customseries.displayName = "Testing";
      seriesArray.push(customseries);
      myChart.series = seriesArray;

      The problem is PlotSeries in actionscript does not seem to have the itemRenderer method.
      Anyone know what i'm doing wrong or how I can accomplish what I need?