Switching from bar to column is the only way to do it (that doesn't
involve a lot of pain and suffering).
 
When you switch, remember to:
 
swap your x/y properties (xField, yField)
swap your h/v properties (horizontalAxis, verticalAxis, etc).
 
Ely.
 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Tuppeny
Sent: Friday, November 17, 2006 2:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Rotating BarChart



Another charting question! :D

Is there an easy way to have the Bar chart rotated? I want to let the
user flick a switch that changes it from one direction to the other, but
using the rotation style obviously screws up the labels.

I tried just changing BarChart to ColumnChart, BarWidthRatio to
ColumnWidthRatio and BarSeries to ColumnSeries but the chart looks
completely different (only showing two columns, instead of the 10 in my
data, and they're 50% wide each). I tried fiddling with some of the
other numbers, but got nowhere.

Are Bar and Column charts supposed to be the same, but rotated? If not,
is there a "nice" way to rotate the bar chart so the bars are vertical?

Thanks

________________________________

The information contained in this e-mail and/or any attachments is
confidential and intended only for the individual(s) to which it is
addressed. If you are not named as an addressee you must not disclose,
copy or take any action in reliance of this transmission. This e-mail
and its attachments have been scanned for viruses by MessageLabs Ltd. 


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


 

Reply via email to