Page 1 of 1

time taken to plot the graph

Posted: Tue Nov 10, 2009 9:46 pm
by 9642625
Hi,

I am extracting data from SybaseIQ and plotting it using the add method
while (rdr.Read() )
{
DateTime dt = (System.DateTime)rdr.GetValue(0);
Double latency = (Double)rdr.GetValue(1);
f1.points1.Add(dt,latency);
f1.fastline1.Add(dat, latency);
}
There are 20 million data points that get plotted on one graph and it is taking approximately 2 hours to produce it.
I timed the data retrival process and that takes only a few minutes.
Clearly, the delay caused is because of the tool. Is there any way i can fasten the process. Please advise.

Re: time taken to plot the graph

Posted: Wed Nov 11, 2009 2:39 pm
by narcis
Hi cs_ech,

You could set AutoRepaint to false before populating series and set AutoRepaint to back to true after it. I recommend you to read the Real-time Charting article here for optimizing TeeChart's performance. This is a Delphi article but most of it also applies to TeeChart for .NET.