4 Replies Latest reply on Nov 13, 2006 8:21 AM by wushupork

    BarChart won't show Slide Effect

      I've defined a BarChart and a SeriesSlide Effect in the mxml. I am programatically populating the BarChart using web services and I set the dataprovider of the BarChart in the webservice handler. The data gets refreshed and the chart updates instantaneously without the sliding effect.

      I've linked the slide effect in the BarSeries like so:
      <mx:BarSeries .... showDataEffect="{slideIn}" .... />
        • 1. Re: BarChart won't show Slide Effect
          chris.huston.t10 Level 3
          What does your SeriesSlide effect look like? The below code works for me:
          <mx:SeriesSlide id="slideIn" duration="1000"/>
          <mx:BarChart x="171" y="329" id="barchart1" dataProvider="{your.dp}">
          <mx:BarSeries displayName="d" xField="freq" showDataEffect="{slideIn}"/>

          • 2. Re: BarChart won't show Slide Effect
            wushupork Level 1
            my SeriesSlide looks just like yours:

            <mx:SeriesSlide id="slideIn" duration="1000" direction="right"/>

            The dataprovider is a binded variable which is set when a webservice call returns
            • 3. Re: BarChart won't show Slide Effect
              chris.huston.t10 Level 3
              I'm also testing with my dataprovider coming from a bound variable from a webservice call and the effect is working for me. If you could post a more complete copy of your code, that might help.

              • 4. Re: BarChart won't show Slide Effect
                wushupork Level 1
                Script side:

                public var m_barDataProvider:XMLList;

                private function treeNodeItemHandler(event:ResultEvent):void
                var result_xml:XML = CleanXML(event.result);

                barchart0.height = result_xml.child("node").length() * 22;

                m_barDataProvider = result_xml.children();

                wsdl=" http://betterthinkfast/KX_WS/Service.asmx?wsdl"
                useProxy="false" showBusyCursor="true"
                <mx:operation name="GetOtherL2ForL2Docs" result="treeNodeItemHandler(event)"/>


                <mx:SeriesSlide id="slideIn" duration="1000" direction="right"/>

                <mx:BarChart id="barchart0" showDataTips="true"
                height="100%" width="100%"
                dataProvider="{m_barDataProvider}" itemClick="BarClickHandler(event)" >
                <mx:CategoryAxis categoryField="@label"/>

                <mx:series >
                <mx:BarSeries yField="@label" xField="@count" displayName="Documents" showDataEffect="{slideIn}"/>


                am I missing anything?

                Thanks Masamune