Page 1 of 1

Unwanted data in TLineSeries

Posted: Sat Sep 28, 2013 1:25 am
by 16566737
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

Re: Unwanted data in TLineSeries

Posted: Sat Sep 28, 2013 1:42 am
by 16566737
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

Re: Unwanted data in TLineSeries

Posted: Mon Sep 30, 2013 2:52 pm
by yeray
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?