Hi,
I have a graph with two options (line chart and area chart). The line chart is pretty fast even with lot of data.
But the area chart is very slow. I did some investigation with ants profiler to see which process is taking so much time.
I have attached a screenshot of the profiler results.
Is there any solution to this problem? It seems to occur in the teechart dll.
Area chart slow
Area chart slow
- Attachments
-
- profile result
- profile_result.jpg (296.58 KiB) Viewed 9597 times
Re: Area chart slow
Hello SPS,
Your arrow is pointing to System.Drawing.SafeNativeMethods+Gdip.GdipDrawLineI method and it is not a Steema method. This method is a .NET Framework method, and I fear, we can not do much for solve it. On the other hand, I recommend you try to using a HatchBrush (a brush with lines rather than a solid brush) and check if now, your application works faster than before.
Thanks,
Your arrow is pointing to System.Drawing.SafeNativeMethods+Gdip.GdipDrawLineI method and it is not a Steema method. This method is a .NET Framework method, and I fear, we can not do much for solve it. On the other hand, I recommend you try to using a HatchBrush (a brush with lines rather than a solid brush) and check if now, your application works faster than before.
Thanks,
Best Regards,
Sandra Pazos / 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: Area chart slow
Well it's still very slow with a hatchbrush.
When i run this simple sample project it takes like 15-20 sec to draw the graph:
Any other ideas would be appreciated.
When i run this simple sample project it takes like 15-20 sec to draw the graph:
Code: Select all
Steema.TeeChart.Styles.Area area1 = new Steema.TeeChart.Styles.Area(this.teeChartControl.Chart);
area1.Brush.Solid = false; //DrawingBrush now returns: {System.Drawing.Drawing2D.HatchBrush}
teeChartControl.Series[0].FillSampleValues(100000);
Re: Area chart slow
Hello SPS,
I suggest two options:
1.- Take a look in the Tecnical Articles concretely in real time charting, where there are a example of optimize Chart to be faster.
2.- TeeChartDirect2D can greatly increase their responsiveness, as explain in this white papper.
I hope will helps.
Thanks,
I suggest two options:
1.- Take a look in the Tecnical Articles concretely in real time charting, where there are a example of optimize Chart to be faster.
2.- TeeChartDirect2D can greatly increase their responsiveness, as explain in this white papper.
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / 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: Area chart slow
Thanks for the suggestions, im looking into TeeChartDirect2D at moment. Is this only for .net 2.0 ? Because in .net 4.0 i get a slimDX version error.
Re: Area chart slow
Hello SPS,
I couldn't reproduce your problem using .net 4.0. S, please check if you have installed SlimDX correctly. If it is installed correctly, you can tell us exactly what say error message,
Thanks,
I couldn't reproduce your problem using .net 4.0. S, please check if you have installed SlimDX correctly. If it is installed correctly, you can tell us exactly what say error message,
Thanks,
Best Regards,
Sandra Pazos / 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: Area chart slow
Installed the TeeChart for .NET digital signal processing, including the SlimDX Runtime Net20 (June 2010) installation (which installed correctly)
Then I opened the Direct2DDemo demo project. Run it and get the following message:
Could not load file or assembly 'SlimDX, Version=4.0.10.43, Culture=neutral, PublicKeyToken=b1b0c32fd1ffe4f9' or one of its dependencies. The system cannot find the file specified.
When i add SlimDx.dll as a reference to the project i get the following message:
Error 1 Assembly 'TeeChart.Direct2D, Version=4.1.2010.11172, Culture=neutral, PublicKeyToken=null' uses 'SlimDX, Version=4.0.10.43, Culture=neutral, PublicKeyToken=b1b0c32fd1ffe4f9' which has a higher version than referenced assembly 'SlimDX, Version=2.0.10.43, Culture=neutral, PublicKeyToken=b1b0c32fd1ffe4f9' c:\Program Files (x86)\Steema Software\TeeChart for .NET Digital Signal Processing\net40\TeeChart.Direct2D.dll Direct2DDemo2010
When i try it as a .net 2.0 project all goes fine. But i can't seem to find a working SlimDx.dll that works for .net 4.0?
Then I opened the Direct2DDemo demo project. Run it and get the following message:
Could not load file or assembly 'SlimDX, Version=4.0.10.43, Culture=neutral, PublicKeyToken=b1b0c32fd1ffe4f9' or one of its dependencies. The system cannot find the file specified.
When i add SlimDx.dll as a reference to the project i get the following message:
Error 1 Assembly 'TeeChart.Direct2D, Version=4.1.2010.11172, Culture=neutral, PublicKeyToken=null' uses 'SlimDX, Version=4.0.10.43, Culture=neutral, PublicKeyToken=b1b0c32fd1ffe4f9' which has a higher version than referenced assembly 'SlimDX, Version=2.0.10.43, Culture=neutral, PublicKeyToken=b1b0c32fd1ffe4f9' c:\Program Files (x86)\Steema Software\TeeChart for .NET Digital Signal Processing\net40\TeeChart.Direct2D.dll Direct2DDemo2010
When i try it as a .net 2.0 project all goes fine. But i can't seem to find a working SlimDx.dll that works for .net 4.0?
Re: Area chart slow
Hello SPS,
Please, try to do as explain in this post, concretly section TeeChart Enviroment Setup, where you find next points:
Thanks,
Please, try to do as explain in this post, concretly section TeeChart Enviroment Setup, where you find next points:
- - Installation considerations
- Licensing issues
Thanks,
Best Regards,
Sandra Pazos / 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 |