Page 1 of 1
Area chart slow
Posted: Thu Oct 21, 2010 12:00 pm
by 15653372
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.
Re: Area chart slow
Posted: Fri Oct 22, 2010 11:17 am
by 10050769
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,
Re: Area chart slow
Posted: Thu Dec 23, 2010 12:37 pm
by 15653372
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:
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);
Any other ideas would be appreciated.
Re: Area chart slow
Posted: Fri Dec 24, 2010 11:23 am
by 10050769
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,
Re: Area chart slow
Posted: Fri Dec 24, 2010 3:59 pm
by 15653372
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
Posted: Mon Dec 27, 2010 9:52 am
by 10050769
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,
Re: Area chart slow
Posted: Wed Dec 29, 2010 9:16 am
by 15653372
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?
Re: Area chart slow
Posted: Wed Dec 29, 2010 5:17 pm
by 10050769
Hello SPS,
Please, try to do as explain in this
post, concretly section TeeChart Enviroment Setup, where you find next points:
- - Installation considerations
- Licensing issues
Points are linking to similar problems and its solutions. If it don't solve your problem, please let me know.
Thanks,