6 Replies Latest reply on Jul 10, 2008 3:20 PM by spacehog

    Using Abs on y-axis

    spacehog Level 1
      I am trying to remove the "-" sign on my y-axis, but it doesn't seem to be working. This is the function:

      private function absValue(value:Number):Number{
      var absValue:Number = Math.abs(value);
      return absValue;
      }

      And I am calling it from my linearaxis tag:

      <mx:verticalAxis>
      <mx:LinearAxis baseAtZero="true" autoAdjust="true" labelFunction="absValue" />
      </mx:verticalAxis>