1 Reply Latest reply on Oct 13, 2009 3:19 AM by gireesh@Ibs

    flip vertical axis title

    Nisha117

      I'm attempting to flip the y-axis title of my linechart to read bottom up (instead of the deafult behavior which is top down). I'm aware that verticalAxisTitleAlignment style(on axisrenderer) if set to "vertical" will achive it. But I'm having a hard time doing it through AS. specifically, this is the piece of code:

      var yAxisRenderer:AxisRenderer = new AxisRenderer();
      yAxisRenderer.axis = axisObj; (axisObj is is of type LinearAxis)
      yAxisRenderer.setStyle('verticalAxisTitleAlignment ', "vertical");

      But the style is not applied and the title still reads down. Any help is greatly appreciated. Thanks in advance

        • 1. Re: flip vertical axis title
          gireesh@Ibs

          Hii,

          Try this...

           

           

          var yAxisRenderer:AxisRenderer = new AxisRenderer();
          yAxisRenderer.axis = axisObj; (axisObj is is of type LinearAxis)
          yAxisRenderer.setStyle('verticalAxisTitleAlignment', "vertical");

          myChart.verticalAxisRenderers.push(yAxisRenderer); //myChart is the chart name