Problem with gradiant charts

TeeChart for ActiveX, COM and ASP
Post Reply
Oblicore
Newbie
Newbie
Posts: 79
Joined: Fri May 27, 2005 4:00 am

Problem with gradiant charts

Post by Oblicore » Thu Mar 16, 2006 2:55 pm

Hello,

in area series, the gradiant does not start from the bottom axis.

any idea why?

Attaching files to the news group.

thanks

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 Mar 16, 2006 3:11 pm

Hi Oblicore,

You can choose the area series gradient direction doing something like the code below or using the chart editor.

Code: Select all

Private Sub Form_Load()
With TChart1
    .Series(0).FillSampleValues 20
    .Series(0).asArea.Gradient.Direction = gdBottomTop
    .Series(0).asArea.Gradient.StartColor = vbRed
    .Series(0).asArea.Gradient.MidColor = vbWhite
    .Series(0).asArea.Gradient.EndColor = vbBlue
    .Series(0).asArea.Gradient.Visible = True
End With
End Sub
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