Unwanted data in TLineSeries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ijbranch
Newbie
Newbie
Posts: 4
Joined: Mon Aug 12, 2013 12:00 am

Unwanted data in TLineSeries

Post by ijbranch » Sat Sep 28, 2013 1:25 am

Hi Guys,

I am tearing what little hair I have left out with this one.
D2007, latest TChart Pro.

Until a short time ago, couple of weeks, everything was working fine when I added new data to a Line Series. Data points, labels, etc, all fine.
Suddenly, now, when I add my first data point either through 'Series1.Add' or 'Series1.AddXY' I get 10 zero value entries in the Chart Data (0 to 9) so my first data point ends up being point 10.
I have been trying to pin it down and the closest I can get is at the point of the first '.Add', zap, the extra data is added in first.

Any thoughts, directions, hints would be greatly appreciated.

Regards & TIA,

Ian

ijbranch
Newbie
Newbie
Posts: 4
Joined: Mon Aug 12, 2013 12:00 am

Re: Unwanted data in TLineSeries

Post by ijbranch » Sat Sep 28, 2013 1:42 am

Additional info. If I repeat the process, clear Series1 and '.add' data, without exiting the app, it all works perfectly. It's as if there is something initialising the Chart data on the first '.Add'.
First_Run attached is on initial data load.
Second_Run attached is on second run data load.
In both cases there is a Series1.Clear as the first step before loading data.
Ian
Attachments
Second_Run.png
Second_Run.png (26.24 KiB) Viewed 3962 times
First_Run.png
First_Run.png (30.09 KiB) Viewed 3925 times

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Unwanted data in TLineSeries

Post by Yeray » Mon Sep 30, 2013 2:52 pm

Hi,

What TeeChart version are you using?
Is it happening when you create a new simple example project or only in a concrete old project?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply