0 Replies Latest reply on Apr 16, 2012 2:09 AM by kiran@flex

    Areaserie    series.setStyle('form','curve'); throws TypeError: Error #1010:

    kiran@flex Level 1

      Hi,

       

      I am using a area chart with multiple areaseries.

      If I use 'form' other than "curve" it works fine.But give exception for series.setStyle('form','curve');

      this is how i am creating multiple series for areachart

       

      private function createChartSeries():Array

              {

                  //this.series = null;

                  var seriesArr : Array = new Array();

                  if(keyset)

                  {

                      for(var i:int=0;i<keyset.length;i++)

                      {

                        

                          var series:AreaSeries = new AreaSeries();

                          series.xField = xField;

                          series.yField = keyset[i];

                          series.uid =i.toString();

                          series.displayName = keyset[i];

                          series.setStyle('form','curve');

                           seriesArr.push(series);

                          series.filterData = true;

                      }

                  }

                  return seriesArr;

              }

       

       

       

      TypeError: Error #1010: A term is undefined and has no properties.

          at mx.charts.chartClasses::GraphicsUtilities$/drawPolyLine()[C:\work\flex\dmv_automation\pro jects\datavisualization\src\mx\charts\chartClasses\GraphicsUtilities.as:305]

          at mx.charts.renderers::AreaRenderer/updateDisplayList()[C:\work\flex\dmv_automation\project s\datavisualization\src\mx\charts\renderers\AreaRenderer.as:153]

          at mx.skins::ProgrammaticSkin/validateDisplayList()[C:\autobuild\3.x\frameworks\projects\fra mework\src\mx\skins\ProgrammaticSkin.as:421]

          at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.x\frameworks\projects\fra mework\src\mx\managers\LayoutManager.as:622]

          at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.x\frameworks\projects\f ramework\src\mx\managers\LayoutManager.as:695]

          at Function/http://adobe.com/AS3/2006/builtin::apply()

          at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.x\frameworks\projects\framewor k\src\mx\core\UIComponent.as:8892]

          at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.x\frameworks\projects\framework \src\mx\core\UIComponent.as:8832]