Page 1 of 1

TChart AddXY behaviour and onClick events

Posted: Thu Jan 10, 2008 8:30 am
by 8441629
Hi all,

Im using Tchart 6.01

Ive just been trying to debug my prog and running into trouble. I have a function that adds a number of points to a point series using AddXY().

I add all the points and also grab the result from the function - im assuming this to be the actual index of the point in the series. I have noticed here i am getting duplicates for the result - surely this is wrong.

I also have a ondblclick function for this pointseries, and have noticed that when i click on the series point, the ValueIndex property is incorrect (i have set ordering of my series to ioNone) but it looks like the valueindex IS the ordered index value.

This point series has a datetime value for x and constant value for y. The datetime values are nto necessarily input in chronological order to the series ( i did notice that when chronology is broken, the result from ADDXY() stays the same number).

Is anyone experincing the same problem? is this normal behaviour?

Thanks

Simon

Posted: Thu Jan 10, 2008 8:57 am
by narcis
Hi Simon,

Could you please send us a simple example project we can run "as-is" to reproduce the issue here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.

File Uploaded

Posted: Fri Jan 11, 2008 12:46 am
by 8441629
I have created a sample project for you to run and uploaded to the steema server. Please read the README.txt for usage.

This is using TChart 6.01.

Thanks

Simon

Found a problem

Posted: Fri Jan 11, 2008 5:22 am
by 8441629
Hi there,

I have now noticed that the value i set at design time for XValues.Order is NOT remebered. Every time i shut down Delphi and then reopen my project, the Order is Set to ioAscending. I think this may be the cause of my problems. For the time being i have set the order to loNone in the forms OnCreate event, and it seems to have fixed the problem. Im not sure if this is a problem with my TChart configuration or the TChart package.

Thanks

Simon