Piechart Direction Question

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

Piechart Direction Question

Post by wisefn » Tue Mar 04, 2008 9:28 am

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?

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 Mar 04, 2008 10:35 am

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