2 Replies Latest reply on Jul 30, 2010 3:45 AM by rootsounds

    Error.Unable to use <mx:CustomDateTimeAxis> to implement the component.

    VladBlinov Level 1



      I have a modified class DateTimeAxis to show data labels in my own format:




           import mx.charts.DateTimeAxis;


           public class CustomDateTimeAxis extends mx.charts.DateTimeAxis


                public function CustomDateTimeAxis()





                override protected function formatDays(d:Date, previousValue:Date, axis:DateTimeAxis):String


                     return d["date"];





      In main application:


      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">



           <mx:CustomDateTimeAxis id="xAxis" dataUnits="days" parseFunction="myParseFunction"/>



      The compiler produces an error:

      "Unable to use <mx:CustomDateTimeAxis> to implement the component."


      Can you help me. Thank you.