2 Replies Latest reply on Sep 23, 2008 11:35 AM by Graeme_Smith

    horizontalAxisRenderer returning Warning in Flex 3!

    Santanu Karar Level 1
      Hi,

      In my Bar chart component, we're using this syntax:

      <mx:horizontalAxisRenderer>
      <mx:AxisRenderer showLabels="false" showLine="false"/>
      </mx:horizontalAxisRenderer>


      But the AxisRenderer returning a warning this like - horizontalAxisRenderer' has been deprecated. Please use 'CartesianChart.horizontalAxisRenderers'!

      I couldnt found any example or anything of how to implement this cartesianchart.horizontalAxisrenderers concept..! Any help or workrounds there...!?


      Thanks!


      ASB
        • 1. Re: horizontalAxisRenderer returning Warning in Flex 3!
          theNOCer
          just add an 's'



          <mx:horizontalAxisRenderer>
          --to->
          <mx:horizontalAxisRenderers>
          • 2. horizontalAxisRenderer returning Warning in Flex 3!
            Graeme_Smith
            I had a similar issue to this when migrating a project from flex 2 to flex 3. Again I got the same warnings for Horizontal or Vertical axisRenderer.
            I did add an 's' as per the reply, this did clear the warning, but now the graph does not display.

            Here's some out-takes from my code.........

            <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
            layout="absolute"
            horizontalScrollPolicy="off"
            verticalScrollPolicy="off"
            backgroundGradientColors="[#FFFFFF, #FFFFFF]"
            width="100%" height="400"
            creationComplete="onInit();">

            <mx:Script>
            <![CDATA[
            import mx.graphics.Stroke;
            ........................................etc etc.

            ]]>
            </mx:Script>

            <mx:Stroke id="axisStroke" color="#000000" weight="4" caps="none"/>
            <mx:Stroke id="tickStroke" color="#535353" weight="1" alpha="0.5" caps="none"/>

            <mx:HBox verticalAlign="middle" horizontalAlign="center" width="100%" height="100%">
            <mx:ColumnChart id="column" width="500" height="400" paddingLeft="5"
            paddingRight="5" showDataTips="true" dataProvider="{barChData}">
            <mx:horizontalAxis>
            <mx:CategoryAxis categoryField="Organization"/>
            </mx:horizontalAxis>
            <mx:horizontalAxisRenderers>
            <mx:AxisRenderer tickPlacement="none" axisStroke="{axisStroke}" />
            </mx:horizontalAxisRenderers>
            <mx:verticalAxisRenderers>
            <mx:AxisRenderer tickPlacement="inside" tickStroke="{tickStroke}"
            tickLength="460" axisStroke="{axisStroke}" />
            </mx:verticalAxisRenderers>
            <mx:series>.....................................and so on.


            Any help is greatly appreciated.

            Graeme.