Aligning Y-axis

TeeChart for ActiveX, COM and ASP
Post Reply
Rossmc
Newbie
Newbie
Posts: 27
Joined: Wed Jul 28, 2004 4:00 am
Location: South Africa

Aligning Y-axis

Post by Rossmc » Wed Jan 19, 2005 9:17 am

I have two controls stacked on top of one another. They 'share' the same BOTTOM axis which is only displayed on the bottom control. They have their own RIGHT axis. I need the RIGHT axis to be drawn in the same position so that they line up. Can you help?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jan 20, 2005 12:23 pm

Hi Rossmc,

You can use a custom axis as right axis and then setting the chart right margins (see code below) at your convenience should do the trick

Code: Select all

    TChart1.Panel.MarginUnits = muPixels
    TChart2.Panel.MarginUnits = muPixels

    TChart1.Panel.MarginRight = 50
    TChart2.Panel.MarginRight = 50
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Rossmc
Newbie
Newbie
Posts: 27
Joined: Wed Jul 28, 2004 4:00 am
Location: South Africa

Thanks

Post by Rossmc » Fri Jan 28, 2005 8:07 am

Your solution works for me!

Post Reply