Page 1 of 1

Piechart Direction Question

Posted: Tue Mar 04, 2008 9:28 am
by 9087008
Image

for i = 0 to 12
.Series(0).Add value, value_title, Color
next

When with above it draws the pie with same method
The pie goes out with a counterclockwise direction..

Me it goes out with a clockwise direction and route it wants..
It does how, one?

Posted: Tue Mar 04, 2008 10:35 am
by narcis
Hi wisefn,

You can use AddXY method for that doing something like this:

Code: Select all

    Dim NumPoints As Integer
    NumPoints = 12
    
    For i = 0 To NumPoints
        TChart1.Series(0).AddXY NumPoints - i, Rnd(), CStr(i), clTeeColor
    Next