Page 1 of 1

Multiple Y-Axis with different colours

Posted: Tue Oct 25, 2005 11:08 am
by 9524848
Hello,
I created a chart with two y-axis.
I would like to have both the y axis on the left side (right next to each other and not one on top of another) of the chart with different colours.
Is it possible to have different colours for the two y axis?.

Can you help me?


Thanks
Mahendra

Posted: Tue Oct 25, 2005 1:35 pm
by narcis
Hi Mahendra,

Yes, this is possible. Just add one custom axis to your chart, associate one series vertical axis to the custom axis created and use:

Code: Select all

    With TChart1.Axis
        .Left.AxisPen.Color = vbRed
        .Custom(0).AxisPen.Color = vbGreen
        .Custom(0).PositionPercent = 10
    End With