2 Replies Latest reply on Mar 3, 2010 10:35 AM by dman_80

    Customize Axis Label for Time

    dman_80 Level 1

      Hello

       

      I have a chart with times (9:00,10:09,11:13,12:21 etc..)on the horizontal axis.

       

      Is it possible to customize these axislabels and show only whole hours, 30 or 15 minutes depending on the scale? Like 9:00, 9:15, 9:30, 10:00 or 9:00, 10:00, 11:00 etc..

        • 1. Re: Customize Axis Label for Time
          Gregory Lafrance Level 6

          I would imagine if you create a dataProvider with the desired time increments it should display fine. There was a forum post recently about how to generate a range of date strings, like 9:00, 9:15, 9:30, etc. I would search for that and then see the Flex Builder help sys on charts, and more specifically setting axislabels.

           

          If this post answers your question or helps, please mark it as such.


          Greg Lafrance - Flex 2 and 3 ACE certified

          www.ChikaraDev.com

          Flex / AIR Development, Training, and Support Services

          • 2. Re: Customize Axis Label for Time
            dman_80 Level 1

            Hello

             

            Thanks, but I solved it already using the DateTimeAxis.

             

            <mx:DateTimeAxis id="ca" autoAdjust="true" dataUnits="hours" parseFunction="dateParseFunction" displayLocalTime="true"/>