1 Reply Latest reply on Jul 15, 2010 11:32 PM by lagrangee_wl

    How to disable default verticalAxisRenderer?

    lagrangee_wl Level 1

      I want to create multi-axis in AS3, see codes below:

       

      --------------------------------------------------------------------

       

      var axisV_left:LinearAxis = new LinearAxis();

      var axisV_right:LinearAxis = new LinearAxis();


      var axisRenderer_right:AxisRenderer = new AxisRenderer();

      var axisRenderer_left:AxisRenderer = new AxisRenderer();


      axisRenderer_right.axis = axisV_right;

      axisRenderer_right.placement = "right";

      axisRenderer_left.axis = axisV_left;

      axisRenderer_left.placement = "left";

       


      columnchart.verticalAxisRenderers = [axisRenderer_left, axisRenderer_right]; // var columnchart:ColumnChart


      var series1:ColumnSeries = new ColumnSeries();

      var series2:ColumnSeries = new ColumnSeries();


      series1.verticalAxis = axisV_left;

      series2.verticalAxis = axisV_right;

       

      columnchart.series = [series1,series2];

      --------------------------------------------------------------------

       

      But actually, It shows three verticalAxis, besides two of above, there's another verticalAxis by default, how to disable it?

       

      Thx!