Page 1 of 1

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

Posted: Mon Aug 08, 2005 5:46 pm
by 9079179
Hello,

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

Thanks!

Posted: Tue Aug 09, 2005 10:20 am
by Pep
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

Posted: Wed Aug 10, 2005 12:20 pm
by 9079179
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!

Posted: Thu Aug 11, 2005 6:23 am
by Pep
Hi,

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