1 Reply Latest reply on May 4, 2007 8:25 AM by Oddsy

    Disable all GridLines in a CartesianCHart

    romanczar Level 1
      Hi!
      I can't manage to disable/hide all GridLines in a CartesianChart. Cna somebody please help me out?

      Thanks.
        • 1. Re: Disable all GridLines in a CartesianCHart
          Oddsy
          I think both of the following code snippets should work (give or take a few typos):

          <mx:CartesianChart id="myChart" backgroundElements="{new Array()}" />

          OR

          <mx:CartesianChart id="myChart">
          <mx:backgroundElements>
          <mx:Array />
          </mx:backgroundElements>
          </mx:CartesianChart>

          Those are doing exactly the same thing, just using a different notation. Basically, default gridlines are a background element so setting the backgroundElements property to an empty array removes them. Don't just copy and paste that, check it's got no typos.