Loading heavy data File

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Loading heavy data File

Post by amol » Wed Sep 16, 2015 1:44 pm

Hi steema,

We have some query regarding, Loading heavy data File. In this file we have 500000( 5 Lakhs) to 10,00000( 10 Lakhs) data points . So when we load the file Tchart goes very slow.
Is there any built-in method or any way to filter similar type data to boost the speed at loading time?

Thanks in advance.

Thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Loading heavy data File

Post by Christopher » Wed Sep 16, 2015 1:58 pm

Hello,
amol wrote: So when we load the file Tchart goes very slow.
How are you loading the data into TChart? Can you please provide a code sample we can run here to reproduce the issue?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Loading heavy data File

Post by amol » Thu Sep 17, 2015 6:23 am

Thanks for prompt reply,

we are using below code to fill data in Line series of tchart1 given as below,

Line linePressure=new Line(tchart1.Chart);
linePressure.Add( lstDataX.ToArray( ) , lstDataY.ToArray( ) );

where the count of lstDataX List is above 10,00000 ( 10 Laks) and the count of lstDataY List is above 10,00000 ( 10 Laks).

we want to sampling the data.


Thanks,

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Loading heavy data File

Post by Christopher » Thu Sep 17, 2015 8:09 am

amol wrote:where the count of lstDataX List is above 10,00000 ( 10 Laks) and the count of lstDataY List is above 10,00000 ( 10 Laks).

we want to sampling the data.
Adding in one million (X, Y) points is not going to be an instantaneous operation.

A couple of suggestions (with reference to the Demo project under %Program Files%\Steema Software\Steema TeeChart for .NET 2015 4.1.2015.XXXXX\Examples\DemoProject\bin\ExecutableDemo\TeeChartNetExamples.exe):

1) Use FastLine instead of Line, setting DrawAllPoints=false and modifying the DrawAllPointsStyle as necessary (All Features -> Welcome !\Chart styles\Standard\Fast Line\Fast Line Speed DrawAll)
2) Use the DownSampling function to reduce the number of points drawn (All Features -> Welcome !\Functions\Extended\Reducing number of points)
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Loading heavy data File

Post by amol » Thu Sep 17, 2015 9:53 am

Thanks for prompt reply,

When we are using FastLine, Pointer property are not show,

we want show the pointer style of series.

Ex- In Line series,

linePressure.Pointer.Style = PointerStyles.Circle;
linePressure.Pointer.Visible = true;
linePressure.Pointer.Color = Color.Blue;

In Line series we are set above property but all above property are not set in fastline..

we want to set Pointer.Style, Pointer.Visible and Pointer.Color in Fastline.

Thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Loading heavy data File

Post by Christopher » Thu Sep 17, 2015 9:55 am

amol wrote:In Line series we are set above property but all above property are not set in fastline..

we want to set Pointer.Style, Pointer.Visible and Pointer.Color in Fastline.
If you don't want to use the FastLine series then your only option is the second one I mentioned to you.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Loading heavy data File

Post by amol » Thu Sep 17, 2015 12:49 pm

Thanks for reply,

As per your suggestion we are using Second technique i.e. sampling of data.
we are using the code below but shows crash on execution.

linePressure.Add( lstDataX.ToArray(), lstDataY.ToArray());
Steema.TeeChart.Functions.DownSampling downSampling = new Steema.TeeChart.Functions.DownSampling(tChart1.Chart);
downSampling.DisplayedPointCount = 2500;
downSampling.Method = Steema.TeeChart.Functions.DownSamplingMethod.MinMaxFirstLastNull;
linePressure.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.DoNotPaint;
linePressure.Function = downSampling;

Please find the attachment .
CRashOnDownSampling.png
Image 1
CRashOnDownSampling.png (12.44 KiB) Viewed 13040 times
Thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Loading heavy data File

Post by Christopher » Thu Sep 17, 2015 12:56 pm

amol wrote: As per your suggestion we are using Second technique i.e. sampling of data.
we are using the code below but shows crash on execution.
Can you please post to this thread a Short, Self Contained, Correct (Compilable), Example with which we can reproduce your problem here?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply