Absolutely,

In addition to series, dataProvider, horizontalAxis and verticalAxis,, a
chart can also have a secondSeries, secondDataProvider,
secondHorizontalAxis and secondVerticalAxis.  This gives you the ability
to display different series types on the same chart.

As an example, for a soccer tournament chart, you might want to show a
ColumnSeries for the number of team wins.  This chart would have the
team names (categoryField) on the horizontalAxis (bottom) and the number
of wins (yField) on the verticalAxis (left).  In addition, you might
want to show a PlotSeries of the average score (second yField) for the
team names (same categoryField).  Simply add a secondSeries,
secondVerticalAxis and secondDataProvider (same collection).  Now, you
basically have two charts in one.  The secondVerticalAxis (right) has
labels for number of wins, that are associated with the PlotSeries
dataPoints.  Because the categoryFields are the same for both series',
the plots and columns will line up for each team.

-TH

--- In [email protected], Sönke Rohde <[EMAIL PROTECTED]> wrote:
>
> Hey Tim,
>
> Thanks a lot. This was obvious ;)
> Anyway is it possible to have multiple axis for e.g. a Plotchart which
means
> on horizontal axis on the top and one on the bottom?
>
> Cheers,
> Sönke
>
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff
> > Sent: Saturday, December 02, 2006 6:29 PM
> > To: [email protected]
> > Subject: [flexcoders] Re: Flex 2 Charting align Axis
> >
> >
> > Hi Sönke,
> >
> > I had the same question a while ago. Ely was nice enough to point
out
> > the obvoius.
> >
> > <mx:horizontalAxisRenderer>
> > <mx:AxisRenderer placement="top"/>
> > </mx:horizontalAxisRenderer>
> >
> > <mx:verticalAxisRenderer>
> > <mx:AxisRenderer placement="right"/>
> > </mx:verticalAxisRenderer>
> >
> > -TH
> >
> > --- In [email protected], Sönke Rohde mail@ wrote:
> > >
> > > Hi,
> > >
> > > How do I align my Axis e.g. I'd like to have to horizontal
> > axis on the
> > top
> > > instead on the bottom and the vertical axis on the right instead
of
> > left.
> > >
> > > Thanks and Cheers,
> > > Sönke
> > >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
>


Reply via email to