TChart AddXY behaviour and onClick events

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Simon
Newbie
Newbie
Posts: 5
Joined: Wed Nov 05, 2003 5:00 am

TChart AddXY behaviour and onClick events

Post by Simon » Thu Jan 10, 2008 8:30 am

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

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 Jan 10, 2008 8:57 am

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.
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

Simon
Newbie
Newbie
Posts: 5
Joined: Wed Nov 05, 2003 5:00 am

File Uploaded

Post by Simon » Fri Jan 11, 2008 12:46 am

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

Simon
Newbie
Newbie
Posts: 5
Joined: Wed Nov 05, 2003 5:00 am

Found a problem

Post by Simon » Fri Jan 11, 2008 5:22 am

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

Post Reply