Multiple Y-Axis with different colours

TeeChart for ActiveX, COM and ASP
Post Reply
Roger
Newbie
Newbie
Posts: 23
Joined: Thu Nov 11, 2004 5:00 am
Location: Dallas

Multiple Y-Axis with different colours

Post by Roger » Tue Oct 25, 2005 11:08 am

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

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

Post by Narcís » Tue Oct 25, 2005 1:35 pm

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
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

Post Reply