1 Reply Latest reply on Apr 6, 2008 10:41 PM by LittleMuscle

    dynamically creating charts

      i am trying to dynamically create a chart but it isn't working. can someone look at my code and tell me what i am doing wrong.

      private function addGraph(event:Event):void {
      var gr:ColumnChart = new ColumnChart();
      var series:Object = gr.series[0]; ////(i tried var series:Object = graph2.series[0]; but this returns error:undef property graph2)
      series.yField = "views";

      i tried modelling the code after the 3rd example at: http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDo cs_Parts&file=00001212.html

      here is the httpservice:
      <mx:HTTPService id="feedRequest" url=" http://ws.jamesward.org/youtube.xml" useProxy="false"/>