5 Replies Latest reply on Nov 4, 2010 12:31 PM by SashaKeith

    had a hard time setting up a bar chart with date value

    harry_lai84 Level 1

      Just wanted to achieve this simple chart with a date value instead of text string or numbers, which is quite simple to achieve in Excel see screenshot.

      With flex 4, here's my code snippet, what do I missed? Please give me a hand, thanks  alot.


         private var scheduledata:ArrayList = new ArrayList([
          {name: "ward1", meeting: "1/1/2008", seminar: "8/12/2008"},    
          {name: "ward2", meeting: "2/1/2009", seminar: "9/24/2009"},
          {name: "ward3", meeting:"3/1/2011",  seminar: "10/30/2011"}

        <mx:BarChart id="bar" height="100%"
            showDataTips="true" dataProvider="{scheduledata}">
          <mx:CategoryAxis categoryField="name"/>

          <mx:BarSeries yField="name" xField="meeting" displayName="meeting" />
          <mx:BarSeries yField="name" xField="seminar" displayName="seminar"/>