Page 1 of 1

Aligning Y-axis

Posted: Wed Jan 19, 2005 9:17 am
by 9083304
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?

Posted: Thu Jan 20, 2005 12:23 pm
by narcis
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

Thanks

Posted: Fri Jan 28, 2005 8:07 am
by 9083304
Your solution works for me!