Area chart slow

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
SPS
Newbie
Newbie
Posts: 27
Joined: Tue May 26, 2009 12:00 am

Area chart slow

Post by SPS » Thu Oct 21, 2010 12:00 pm

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.
Attachments
profile_result.jpg
profile result
profile_result.jpg (296.58 KiB) Viewed 9613 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Area chart slow

Post by Sandra » Fri Oct 22, 2010 11:17 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

SPS
Newbie
Newbie
Posts: 27
Joined: Tue May 26, 2009 12:00 am

Re: Area chart slow

Post by SPS » Thu Dec 23, 2010 12:37 pm

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Area chart slow

Post by Sandra » Fri Dec 24, 2010 11:23 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

SPS
Newbie
Newbie
Posts: 27
Joined: Tue May 26, 2009 12:00 am

Re: Area chart slow

Post by SPS » Fri Dec 24, 2010 3:59 pm

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Area chart slow

Post by Sandra » Mon Dec 27, 2010 9:52 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

SPS
Newbie
Newbie
Posts: 27
Joined: Tue May 26, 2009 12:00 am

Re: Area chart slow

Post by SPS » Wed Dec 29, 2010 9:16 am

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?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Area chart slow

Post by Sandra » Wed Dec 29, 2010 5:17 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply