You're a chief!!! I had forgotten the [0] ;( Thanks for your help, now it works
Julien On Mon, Jan 12, 2009 at 4:54 PM, Sam Lai <[email protected]> wrote: > > 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]<julien.balmont%40echovox.com> > >: > > > 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! > > > > > > > > -- Julien Balmont Project Manager Tel: +331 41 92 28 73 Mobile: +336 32 65 17 60 Echovox France 107 Avenue Charles de Gaulle 92200 Neuilly-Sur-Seine France

