Pie chart sample

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Beige
Newbie
Newbie
Posts: 25
Joined: Wed Jun 28, 2006 12:00 am

Pie chart sample

Post by Beige » Thu Jun 04, 2009 4:36 pm

I am new to TeeChart. Would like to see how to feed a Pie chart using dataset. i.e. Dataset has 2 columns of reson code and number.

thanks

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Fri Jun 05, 2009 7:31 am

Hi Beige,

Have you seen the Tutorial 8 - ADO Database access? YOu should find demos and tutorials at TeeChart programs group.

You'll find another simple example in this topic

I hope this helps.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Beige
Newbie
Newbie
Posts: 25
Joined: Wed Jun 28, 2006 12:00 am

Post by Beige » Tue Jun 09, 2009 6:31 pm

I still need help on how to set XValues.DataMember and YValue.DataMember. for example. I have a datatable with 2 columns with category and percentage.
The sample all shows
this.pie1.XValues.DataMember = "Angle";
this.pie1.XValues.Order =Steema.TeeChart.Styles.ValueListOrder.Ascending;
this.pie1.YValues.DataMember = "Pie";
what "Angle" and "Pie" come from?

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Jun 10, 2009 9:32 am

Hi Beige,

XValues.DataMember and YValues.DataMember should store the name of the column of the table you want to retrieve the info from.
So in that example, you table should have a column with angles, named "Angle". And another column probably with values, named "Pie".

If you still have problems with it, don't hesitate to let us know. And please, if possible, send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply