5 Replies Latest reply on Jun 1, 2009 4:43 AM by bharghava.raparla

    How to disable chart axis lables from actionscript in flex3

    bharghava.raparla

       

       

       

       

       

       

       

       

       

       

       

       

      colChart=

      new ColumnChart();

      colChart.percentHeight=80;

      colChart.percentWidth=100;

       

      colChart.dataProvider=expensesAC.getItemAt(0);

      colChart.showDataTips=

      true;

      var

      "Month";

       

      var hAxisRenderer:AxisRenderer=new AxisRenderer();

      hAxisRenderer.axis=catAxis;

      hAxisRenderer.setStyle(

      "showLables",false);

      colChart.horizontalAxis = catAxis;

       

      var vAxis:LinearAxis=new LinearAxis();

       

      var vAxisRenderer:AxisRenderer=new AxisRenderer();

      vAxisRenderer.axis=vAxis;

      vAxisRenderer.setStyle(

      "showLables",false);

       

      i tried these three variations but could not get the expected result

       

       

      colChart.horizontalAxisRenderers= new Array(hAxisRenderer);

      colChart.verticalAxisRenderers.push(vAxisRenderer);

      colChart.horizontalAxisRenderers[0].setStyle(

      "showLabels", false);

      catAxis:CategoryAxis = new CategoryAxis();

      catAxis.categoryField =

       

      "Month";

       

      var hAxisRenderer:AxisRenderer=new AxisRenderer();

      hAxisRenderer.axis=catAxis;

      hAxisRenderer.setStyle(

      "showLables",false);

      colChart.horizontalAxis = catAxis;

       

      var vAxis:LinearAxis=new LinearAxis();

       

      var vAxisRenderer:AxisRenderer=new AxisRenderer();

      vAxisRenderer.axis=vAxis;

      vAxisRenderer.setStyle(

      "showLables",false);

       

      i tried these three variations but could not get the expected result

       

       

      colChart.horizontalAxisRenderers= new Array(hAxisRenderer);

      colChart.verticalAxisRenderers.push(vAxisRenderer);

      colChart.horizontalAxisRenderers[0].setStyle(

      "showLabels", false);

      catAxis:CategoryAxis = new CategoryAxis();

      catAxis.categoryField =

      catAxis:CategoryAxis = new CategoryAxis();

      catAxis.categoryField =

      "Month";

       

      var hAxisRenderer:AxisRenderer=new AxisRenderer();

      hAxisRenderer.axis=catAxis;

      hAxisRenderer.setStyle(

      "showLables",false);

      colChart.horizontalAxis = catAxis;

       

      var vAxis:LinearAxis=new LinearAxis();

       

      var vAxisRenderer:AxisRenderer=new AxisRenderer();

      vAxisRenderer.axis=vAxis;

      vAxisRenderer.setStyle(

      "showLables",false);

       

      i tried these three variations but could not get the expected result

       

       

      colChart.horizontalAxisRenderers= new Array(hAxisRenderer);

      colChart.verticalAxisRenderers.push(vAxisRenderer);

      colChart.horizontalAxisRenderers[0].setStyle(

      "showLabels", false);

       

       

       

      can any one help me out to fix this.

      thanks