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
Loading heavy data File
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Loading heavy data File
Hello,
How are you loading the data into TChart? Can you please provide a code sample we can run here to reproduce the issue?amol wrote: So when we load the file Tchart goes very slow.
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 |
Re: Loading heavy data File
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,
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,
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Loading heavy data File
Adding in one million (X, Y) points is not going to be an instantaneous operation.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.
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 |
Re: Loading heavy data File
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
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
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Loading heavy data File
If you don't want to use the FastLine series then your only option is the second one I mentioned to you.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.
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 |
Re: Loading heavy data File
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 .
Thanks
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 .
Thanks
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Loading heavy data File
Can you please post to this thread a Short, Self Contained, Correct (Compilable), Example with which we can reproduce your problem here?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.
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 |