Page 1 of 1

Slow plotting graph

Posted: Mon Nov 24, 2008 10:38 am
by 13048457
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

Posted: Mon Nov 24, 2008 11:27 am
by narcis
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.

Posted: Tue Nov 25, 2008 8:26 am
by 13048457
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.

Posted: Wed Nov 26, 2008 7:59 am
by 13048457
Hi,

Do you get my project? Can it run?

Thanks.

Posted: Wed Nov 26, 2008 8:48 am
by narcis
Hello,

Yes, we received your project and I could reproduce the issue here. We are investigating it and will get back to you ASAP.

Posted: Fri Nov 28, 2008 2:58 pm
by Marc
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