3 Replies Latest reply on Nov 24, 2008 12:42 AM by air.NET

    Multiple LinearAxis in LineChart

    air.NET
      Hi all!

      I have LineChart where I have 5 LineSeries. Now two of the LineSeries needs own LinearAxis. Is it possible and how? I've seen only examples where is pointed out how to make different verticalAxis when there's mixed ColumnChart and LineChart, but not example where would be different verticalAxis for different LineSeries.

      Any help would be appreciated.
        • 1. Re: Multiple LinearAxis in LineChart
          Level 7

          "air.NET" <webforumsuser@macromedia.com> wrote in message
          news:gg6jk0$21$1@forums.macromedia.com...
          > Hi all!
          >
          > I have LineChart where I have 5 LineSeries. Now two of the LineSeries
          > needs
          > own LinearAxis. Is it possible and how? I've seen only examples where is
          > pointed out how to make different verticalAxis when there's mixed
          > ColumnChart
          > and LineChart, but not example where would be different verticalAxis for
          > different LineSeries.
          >
          > Any help would be appreciated.
          >

          http://www.magnoliamultimedia.com/ChartExample/ChartExample.html


          • 2. Re: Multiple LinearAxis in LineChart
            air.NET Level 1
            quote:

            http://www.magnoliamultimedia.com/ChartExample/ChartExample.html
            ¨

            Thanks, this explains a bit. But my problem is now, that I want three LineSeries to use one verticalAxis and two LineSeries to use another verticalAxis. Now with example what you sent, I get verticalAxis for every LineSeries. This is what I've tried now, but it's giving error: TypeError: Error #1006: setActualSize is not a function.
            • 3. Re: Multiple LinearAxis in LineChart
              air.NET Level 1
              Hi all, the answer was easier than I thought. I had to put one verticalAxis to lineSeries4 and then set verticalAxis property of lineSeries5 to the same verticalAxis. Like this:

              <mx:LineSeries id="lineSeries4">
              <mx:verticalAxis>
              <mx:LinearAxis id="la1" />
              </mx:verticalAxis>
              </mx:LineSeries>
              <mx:LineSeries id="lineSeries5" verticalAxis="{la1}"/>