Page 1 of 1

Align top and bottom axis for several charts

Posted: Wed Dec 31, 2003 9:16 am
by 9079002
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

Posted: Fri Jan 02, 2004 9:20 am
by Chris
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