1 Reply Latest reply on Aug 25, 2009 6:25 PM by babo_ya

    Line chart yaxis

    aprildavid

      The default line chart's axis has  around 5 pixel width, how can I change to 1 pixel, which is the same width for x-axis.

      Please see attached UI mock UI. Our designer is uing 1 pixel for both x-axis and y axis.

       

      I am using as3.

       

      Thanks!

        • 1. Re: Line chart yaxis
          babo_ya Level 3

          Here is how u define the vertical axis.. note how the ID is "a2"

           

          <mx:verticalAxis >

                   

                      <mx:LinearAxis minimum="0" baseAtZero="false" id="a2"

                              labelFunction="linearAxis_labelFunc" />

           

                  </mx:verticalAxis>

           

           

          and add the axisRenderers as below..

           

          <mx:verticalAxisRenderers>

                          <mx:AxisRenderer axis="{a2}" styleName="ChartVerticalAxis" placement="left"

                          tickLength="0">

                              <mx:axisStroke>

                          <mx:Stroke color="#9f9f9f" weight="1"/>

                      </mx:axisStroke>

                      <mx:tickStroke>

                          <mx:Stroke color="#9f9f9f" weight="0"/>

                      </mx:tickStroke>

                      <mx:minorTickStroke>

                          <mx:Stroke color="#9f9f9f" weight="0"/>

                      </mx:minorTickStroke>

                         </mx:AxisRenderer>

          </mx:verticalAxisRenderers>

           

           

          Hope this helps,

           

          BaBo,