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

Message ListMessage List     Post MessagePost Message

  Axis Title Alignment and Justification
Posted by JC on Dec-01-2008 22:51

I have been playing with the axis title alignment and justification. When I increase the axis title box size to (100%) of the width/height (pending on which axis) of the chart, setting the text justification Left/Center/Right) the whole textbox moves along with the justification. So the axis title textbox is not the full width/height.

How can I set the axis justify text while maintaining the (100%) width/height (pending on which axis) of the axis title box?

c.setPlotArea(100,100)
Dim t As ChartDirector.TextBox = c.xAxis().setTitle("Winter is HERE")
t.setSize(100,0)
t.setAlignment(c.right)

  Re: Axis Title Alignment and Justification
Posted by Peter Kwan on Dec-02-2008 01:15
Hi JC,

The setAlignment of the axis title currently puts the axis title (including the entire text box) on the right side of the axis.

If you need to put the axis title text box centered on and under the x-axis, and right align the text without the text box, you may try using CDML:

c.xAxis().setTitle("<*block,width=100,halign=right*>Winter is HERE")

Hope this can help.

Regards
Peter Kwan