0 Replies Latest reply on Dec 7, 2009 1:12 AM by kmcsekar

    Chart Axis: Label Renderer pixel width

    kmcsekar

      Am using custom label renderer for Chart Axis labels.

       

      CustomLabelRenderer extends label

      {

       

      override

       

       

      public function set data(value:Object):void

      {

       

       

       

      if(value is AxisLabel)

      {

      dataValue = String(value.text);

      }

       

      else

      {

      dataValue = String(value);

      }

       

         

         

       

       

      }

       

       

      I would like to get the Width of the Label component in PIXELS on runtime.

       

      Can you please tell me how I can get the pixel width of the labels that gets updated when user changes the screen resolution.

       

       

      Please let me know ASAP.

       

      Thanks