Rotate x Axis titles?

S

Stevie_mac

Using OWC - programatically creating a chart - can the x-axis (lower horizontal)
titles be rotated [say 45 degrees] to allow for longer titles. Thanks for any
help.
 
T

Thao Moua [ms]

Current version owc9 and owc10 don't support axis text
rotation. Only horizontal, vertical up, and vertical
down.

-tm
 
S

Sean Gaffney

As default, the X-axis labels are horizontal. However,
you said the X-axis labels may turned vertical up or
vertical down. Can you help me with the methods to turn
the labels vertical upwards? I know it's possible using
XML, however I'm now using VBScript (b/c of ASP) and can't
seem to find the right method. I've tried the following:

set ChartSpace = server.CreateObject("OWC.Chart")
set Chart = ChartSpace.Charts.Add()
set C = ChartSpace.Constants

Chart.Axes
(C.chAxisPositionCategory).CategoryLabels.Alignment.Rotatio
n = 90
When I try to run this, I get an error where it doesn't
recognize the "chAxisPositionCategory" property. Any help
would be greatly appreciated.

-----Original Message-----
Current version owc9 and owc10 don't support axis text
rotation. Only horizontal, vertical up, and vertical
down.

-tm
-----Original Message-----
Using OWC - programatically creating a chart - can the x- axis (lower horizontal)
titles be rotated [say 45 degrees] to allow for longer titles. Thanks for any
help.


.
.
 
S

Stevie_mac

OWC10 ...

objChart.Axes(0).Orientation = OWC10.ChartLabelOrientationEnum.chLabelOrientationUpward


Sean Gaffney said:
As default, the X-axis labels are horizontal. However,
you said the X-axis labels may turned vertical up or
vertical down. Can you help me with the methods to turn
the labels vertical upwards? I know it's possible using
XML, however I'm now using VBScript (b/c of ASP) and can't
seem to find the right method. I've tried the following:

set ChartSpace = server.CreateObject("OWC.Chart")
set Chart = ChartSpace.Charts.Add()
set C = ChartSpace.Constants

Chart.Axes
(C.chAxisPositionCategory).CategoryLabels.Alignment.Rotatio
n = 90
When I try to run this, I get an error where it doesn't
recognize the "chAxisPositionCategory" property. Any help
would be greatly appreciated.

-----Original Message-----
Current version owc9 and owc10 don't support axis text
rotation. Only horizontal, vertical up, and vertical
down.

-tm
-----Original Message-----
Using OWC - programatically creating a chart - can the x- axis (lower horizontal)
titles be rotated [say 45 degrees] to allow for longer titles. Thanks for any
help.


.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top