Align top and bottom axis for several charts

TeeChart for ActiveX, COM and ASP
Post Reply
Ced
Newbie
Newbie
Posts: 25
Joined: Fri Nov 15, 2002 12:00 am

Align top and bottom axis for several charts

Post by Ced » Wed Dec 31, 2003 9:16 am

Hi,

I have several charts on the screen and I need the top and bottom axis to be aligned for all the charts. In one of the chart, I have Bottom axis visible with labels and a caption and for another one, I don't want any axis to be visible (and no label nor caption). How can I specify this chart's axis to be placed at the same position than the bottom axis of the other chart? I need to do the same thing for top axis.

Thanks

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Fri Jan 02, 2004 9:20 am

Hi -
I have several charts on the screen and I need the top and bottom axis to be aligned for all the charts. In one of the chart, I have Bottom axis visible with labels and a caption and for another one, I don't want any axis to be visible (and no label nor caption). How can I specify this chart's axis to be placed at the same position than the bottom axis of the other chart? I need to do the same thing for top axis.
Using the TeeChart Pro AXv6 you can specify the Margins of a chart (the space between the edge of the chart and the chart axes) in pixels, e.g.

Code: Select all

Private Sub Form_Load()
With TChart1
    .AddSeries scLine
    .Series(0).FillSampleValues 20
    
    .Panel.MarginUnits = muPixels
    .Panel.MarginBottom = 60
    
End With
End Sub
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply