Page 1 of 1

import text data problem

Posted: Sun Oct 10, 2004 4:08 pm
by 8439796
Hi,
I tried to import a text data file following the article "Importing text data from Dat or Txt file". But it doesn't work. The text file is
0.1 24
0.5 143
0.2 321
0.1 100

After I import it, it gives me 4 zeros for x=0,1,2,3. I tried lineseries and point3Dseries. Help

Fang

Posted: Mon Oct 11, 2004 8:03 am
by Marjan
Hi.

Which TeeChart version are you using ? For point series it should work fine, providing you connect first column to x values and second column to y values (see TeeChart demo how exactly it's done). How did you define the column separator ?

For point3D series you need three columns, namely x,y and z.

Posted: Mon Oct 11, 2004 5:40 pm
by 8439796
I tried 3 colume,

I am using 6.0pro, just placed order for v7.

could you tell me where is the demo? I checked the demo feature exe, but couldn't find where it's. Thanks.

Fang

Posted: Tue Oct 12, 2004 11:30 am
by Marjan
Hi.
could you tell me where is the demo?
The Tee7New.exe, included with binaries installer. Check the "All Features -> Components -> Text source" example. The example is for bar series, but very similar code can be used with other series types as well.

Posted: Wed Oct 13, 2004 10:36 pm
by 8439796
Thanks.

I'll try the code. But at runtime, in the charteditor, if I click series->data source->text file, and select the text file and parameters and press apply, it never works (v6,v7 without source code)

Fang
Best regards

Posted: Thu Oct 14, 2004 3:27 pm
by Pep
Hi,

I've just test it here and works fine. To import the values of your first post (at design time) you only must add the Series (point series for example) go to the DataSource tab, select Text File, set Separator as "Space", Num. of Header File = 0, Text Column field = empty, X field = 1, Y Field = 2, and click "Apply".