ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  vertical y axis lables
Posted by skirchoff on Jul-28-2009 22:29
is there a way to create labels that are vertical and not written horizontal?

my Y axis is comprised of time stamps that occur every minute. I have to consistently manipulate the data based on the length of time graphed to get rid of overlapping, but when I do that i have to take out data.

having the time stamps written vertically would be very beneficial.

  Re: vertical y axis lables
Posted by Peter Kwan on Jul-29-2009 00:33
Hi skirchoff,

Some of the sample charts included in ChartDirector contain vertical labels. An example is the "Trend Line Chart" sample code. (You may look for "Trend Line Chart" in the ChartDirector documentation index.)

The API to use is Axis.setLabelStyle. For example (in ColdFusion):

//Set font to Arial 8pt black rotated by 90 degrees
c.yAxis().setLabelStyle("Arial", 8, "0x000000", 90);

Hope this can help.

Regards
Peter Kwan

  Re: vertical y axis lables
Posted by Sam Kirchoff on Aug-01-2009 01:01
Perfect! Thanks!!