Page 1 of 1

Tchart wont accept dataSource

Posted: Wed Jun 29, 2005 2:30 pm
by 9637396
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 ....?

Posted: Wed Jun 29, 2005 2:44 pm
by narcis
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.

Filling a Tower with data from a DataReader

Posted: Thu Jun 30, 2005 6:47 am
by 9637396
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

Posted: Thu Jun 30, 2005 11:37 am
by narcis
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.