5 Replies Latest reply on Apr 15, 2010 1:37 PM by matthew horn

    Charting Styles Now Needed

    TucsonJava Level 1

      Hi all,

       

      I am moving a Flex 3 app to Flex 4 but still using Halo theme and Flex 3 compatibility mode (but Flex 4 SDK). All of my charts, which worked under 3.5, are now getting runtime errors. It appears that I need to set the styles on the chart and chart axes. Am I missing something or are there no longer any default styles for charts?? Thanks for any replys.

       

      Sample chart that previously worked:

       

      <mx:LineChart id="myChart" dataProvider="{vendor.vendorStatistics}" showDataTips="true" dataTipFunction="myDataTipFunction"
                            width="95%">
              <mx:horizontalAxis>
                      <mx:CategoryAxis id="haxis" dataProvider="{vendor.vendorStatistics}" categoryField="sDate"/>
               </mx:horizontalAxis>
               <mx:series>
                      <mx:LineSeries yField="purchases" displayName="Purchases $"/>
                </mx:series>
      </mx:LineChart>
      <mx:Legend id="legend" dataProvider="{myChart}" direction="horizontal"/>