Page 1 of 1

Problem with gradiant charts

Posted: Thu Mar 16, 2006 2:55 pm
by 9527011
Hello,

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

any idea why?

Attaching files to the news group.

thanks

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