AxisRenderer(myBarChart.horizontalAxisRenderers[0]).setStyle("showLabels",
false);should work. How have you defined your chart in MXML? Did you explicitly define a horizontal axis renderer, or are you using the internal one? Maybe try defining one explicitly, and that way you can set an ID and refer to it directly. 2009/1/12 Julien BALMONT <[email protected]>: > Hello, > > i'm trying to remove the labels from the horizontal axis of a column chart > (and a line chart) when clicking on a button (and also add it if removed). > For this, i have to use ActionScript, but i'm unable to find the correct > syntax and Object. > > Can anyone help me? > > I've tried myBarChart.styleName = "noAxisStyle"; (with a noAxisStyle class > defined with .noAxisStyle > { > showLabels: false; > } > but it doesn't work. > > I also tried myBarChart.setStyle("showLabels", true); but it diesn't work. > > Finally I tried > AxisRenderer(myBarChart.horizontalAxisRenderers).setStyle("showLabels", > false); but it doesn't work. > > No other idea. > > Thanks! > > >

