Slow plotting graph

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
UnKnown
Newbie
Newbie
Posts: 11
Joined: Mon Mar 03, 2008 12:00 am

Slow plotting graph

Post by UnKnown » Mon Nov 24, 2008 10:38 am

My program is web application. I plotting the data on two axis.

My problem is as below:
- when plotting data on chart it so slow to render the graph for showing on web page. Sometime, it hang, shows like white box (as attached picture below) or red cross even it have data for plotting.
(for this problem, i have read other thread answer that need to use session and getChart.aspx file so i already use it
but sometime it still have this problem)

My step to do graph:
- specify my chart ==>Steema.TeeChart.Chart cG3 = wcG1.Chart;
- set header, Axes left right
- query data on DB for plotting on left axis
- plotting data on chart for left axis
- query data on DB for plotting on right axis
- plotting data on chart for right axis
- set the minimum and maximum value on the bottom axis

Do you have any suggestion about my step for plotting graph?

Thanks,


White Box picture:
Image

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Nov 24, 2008 11:27 am

Hello,

Besides adding GetChart.aspx.cs file to your project, do you set TempChart property to session as told in "Tutorial9 - ASP.NET Applications", at the "TempChart property - File, Session, Cache or Httphandler" section?

If problem persists, could you please send us a simple example project we can run "as-is" to reproduce the problem here? You can reproduce datasource as in the example Christopher Ireland posted here.

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
Best Regards,
Narcís Calvet / 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

UnKnown
Newbie
Newbie
Posts: 11
Joined: Mon Mar 03, 2008 12:00 am

Post by UnKnown » Tue Nov 25, 2008 8:26 am

Hi,

As your suggest, i already add GetChart.aspx file and set session. But this problem still happen.

I uploaded the file to your server, names "MyFolder_2.rar".
There are "TempData" folder which have excel data inside. It need excel dll to run the file which attached in "Bin" folder. I cannot send the data
as in that posted because the data cannot making like that.


Thanks.

UnKnown
Newbie
Newbie
Posts: 11
Joined: Mon Mar 03, 2008 12:00 am

Post by UnKnown » Wed Nov 26, 2008 7:59 am

Hi,

Do you get my project? Can it run?

Thanks.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Nov 26, 2008 8:48 am

Hello,

Yes, we received your project and I could reproduce the issue here. We are investigating it and will get back to you ASAP.
Best Regards,
Narcís Calvet / 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

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Fri Nov 28, 2008 2:58 pm

Hello,

This appears to plot consistently on Firefox but not Internet Explorer where an empty box appears at times. The problem is solved here by a change to the Chart load process code.

In the sample project a Hotspot tool is being loaded 3 times. That is not necessary. Disabling the repeated call to Hotspot Tool creation and moving it to a once-load location results, testing here, in a consistent trouble-free Chart load.

Eg.

Code: Select all

plotGraph2(...params1...);      
plotGraph2(...params2...);       
plotGraph2(...params3...);

//load Hotspot tool here:
Steema.TeeChart.Tools.SeriesHotspot seriesHotSpot2 = new Steema.TeeChart.Tools.SeriesHotspot(Chart2);
seriesHotSpot2.MapAction = Steema.TeeChart.Styles
Regards,
Marc Meumann
Steema Support

Post Reply