1 Reply Latest reply on Apr 30, 2008 12:31 AM by Gregory Lafrance

    On Pie chart rotation - the labels disappear

    RBKB
      I am using followig to rotate a pie chart:

      <mx:Rotate id="rotate" angleFrom="{angle-90}" angleTo="{angle}"
      target="{myChart}"/>

      private function rotateImage():void {
      rotate.end();
      angle += 90;
      rotate.play();
      }

      <mx:PieChart id="myChart" dragEnabled="true"
      dragComplete="rotateImage()">

      So, when a user tries to drag the pie chart, the chart rotates. The
      chart rotates fine but the labels disappear? why would this happen and
      any solution to this.

      Also, I would like to use some other event for rotation instead of
      dragComplet. I would like to do it when user clicks left mouse
      button+moves the mouse (both on the outside of the chart)

      Any suggetions?

      Thanks in advance.