Pie Chart...Is there an example of how to populate?

TeeChart for ActiveX, COM and ASP
Post Reply
Jeff
Newbie
Newbie
Posts: 22
Joined: Fri Nov 15, 2002 12:00 am
Location: Virginia, United States

Pie Chart...Is there an example of how to populate?

Post by Jeff » Mon Aug 08, 2005 5:46 pm

Hello,

Is there an example of how to populate a pie chart using visual basic code?

Thanks!

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Aug 09, 2005 10:20 am

Hi,

a simple example could be :

Code: Select all

Private Sub Form_Load()
With TChart1
    .AddSeries scPie
    .Series(0).Add 10, "label1", clTeeColor
    .Series(0).Add 30, "label2", clTeeColor
    .Series(0).Add 50, "label3", clTeeColor
    .Series(0).Add 5, "label4", clTeeColor
    .Series(0).Add 5, "label5", clTeeColor
    .Series(0).asPie.Circled = True
End With
End Sub

Jeff
Newbie
Newbie
Posts: 22
Joined: Fri Nov 15, 2002 12:00 am
Location: Virginia, United States

Post by Jeff » Wed Aug 10, 2005 12:20 pm

Thanks! I also found some examples in the Steema folder on my PC.

Another question.... How would I set up my pie chart to reflect 0 to 360 degrees??

Thanks!

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Aug 11, 2005 6:23 am

Hi,

you mean :
TChart1.Series(0).asPie.AngleSize = 260

Post Reply