Page 1 of 1
Loading heavy data File
Posted: Wed Sep 16, 2015 1:44 pm
by 9526439
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
Re: Loading heavy data File
Posted: Wed Sep 16, 2015 1:58 pm
by Christopher
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?
Re: Loading heavy data File
Posted: Thu Sep 17, 2015 6:23 am
by 9526439
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,
Re: Loading heavy data File
Posted: Thu Sep 17, 2015 8:09 am
by Christopher
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)
Re: Loading heavy data File
Posted: Thu Sep 17, 2015 9:53 am
by 9526439
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
Re: Loading heavy data File
Posted: Thu Sep 17, 2015 9:55 am
by Christopher
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.
Re: Loading heavy data File
Posted: Thu Sep 17, 2015 12:49 pm
by 9526439
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 .
- Image 1
- CRashOnDownSampling.png (12.44 KiB) Viewed 13039 times
Thanks
Re: Loading heavy data File
Posted: Thu Sep 17, 2015 12:56 pm
by Christopher
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?