Tchart wont accept dataSource

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Lars Iversen
Newbie
Newbie
Posts: 61
Joined: Wed Jun 22, 2005 4:00 am
Location: cph

Tchart wont accept dataSource

Post by Lars Iversen » Wed Jun 29, 2005 2:30 pm

When filling my TChart with data from a OleDB DataReader the TChart show up empty!

I know that the datareader has been loaded with data - but this call: tChart1[0].DataSource = datareader;
does nothing!

I am trying to fill a Tower with data an the 'FillSampleValues' function does this fine - but it wont accept data from the datareader!?
Would it be better with a DataSet or DataTabel ?

What am I missing here ....?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jun 29, 2005 2:44 pm

Hi ext-cph,

It may help you having a look at "Tutorial 8 - ADO.NET Database Access". You'll find the tutorials at TeeChart program group. This tutorials shows how to use TeeChart with databases either at design-time and run-time.
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

Lars Iversen
Newbie
Newbie
Posts: 61
Joined: Wed Jun 22, 2005 4:00 am
Location: cph

Filling a Tower with data from a DataReader

Post by Lars Iversen » Thu Jun 30, 2005 6:47 am

I have looked at Tutorial - but again with no luck!
It all works fine when loading a Bar series - but I cannot fil the Tower.

If you can give me an example of how to fill a tower (not a bar) i would be very pleased.

Regards

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 30, 2005 11:37 am

Hi ext-cph,

The problem may lie on your data nature. It should fit this kind of series typology as with ColorGrid and Surface series as I've already explained at this other thread. If your data doesn't fit that structure it won't be displayed.
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