4 Replies Latest reply on Jul 12, 2007 5:09 AM by abudahim

    how to change labels of DateTimeAxis ?

    abudahim
      instead of defaults labels which are months numbers, i want to label the DateTimeAxis with months name.
      i used labelFunction() but it gives me an error : "ArgumentError: Error #1063: Argument count mismatch on charting/defineLabel(). Expected 4, got 3."

      however, it works fine with CategoryAxis.
      here is the function code:

      public function defineLabel(cat:Object, pcat:Object,ax:DateTimeAxis, catItem:Object):Date
      {
      var d:Date = new Date(2007,7,12); //just an example
      return d
      }

      any ideas please ..