1 Reply Latest reply on Apr 20, 2007 2:05 PM by JoeADSK

    Reset All the displayed series on the chart

    Arthur@aginova
      How do i Reset All the displayed series on the chart on a click of a button "Reset Chart"?
      - Resetting the application also may help how do i do this! rather than calling the flex application again!
      Any Idea!
        • 1. Re: Reset All the displayed series on the chart
          JoeADSK
          You can do this by calling the constructor for whatever your data provider is.
          Here is how i do it -

          [Bindable]
          public var qResult:ArrayCollection;

          public function handleQueryResult(event:ResultEvent):void{
          qResult=event.result as ArrayCollection;

          }

          public function clearAll():void{
          qResult=new ArrayCollection();

          <mx:Button label="clear" click="clearAll()"/>