xixi

IE server-side export is slow when char is invisible

Recommended Posts

I am using the commercial version of FusionCharts XT (v3.2.2) Service Release 3 (Released on 12th March, 2012)

I am using FusionCharts with a Java/J2EE Web application and execute server-side export by calling javascript function.

In the IE (both IE7 and IE8, the problem occurs), the chart is rendered correctly in the web page,

when the char is visible in the browser, executing server-side export is fast,

but if the char is invisible in the browser(for example, there are some other contents at the head of the char), 

server-side exporting takes 3 minutes from the calling of "chart.exportChart()" on the javascript to start creating the image on the server.

Why when the char is invisible, the export is slow, and how can I resolve the problem?

Thanks.

And the implementation is such as following
------------------------------------------------
javascript:
var chart = getChartFromId("chart_id");
chart.exportChart();

web.xml:
<servlet>
     <display-name>FCExporter</display-name>
     <servlet-name>FCExporter</servlet-name>
     <servlet-class>com.fusioncharts.exporter.servlet.FCExporter</servlet-class>
     <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
        <servlet-name>FCExporter</servlet-name>
        <url-pattern>/FCExporter</url-pattern>
</servlet-mapping>

other files is also in the app:
FusionCharts.HC.Charts.js
FusionCharts.HC.js
FusionCharts.js
FusionChartsExportComponent.js

fcexporterjdk1_4.jar
fcexporthandlerjdk1_4.jar
-----------------------------------------------

 

Share this post


Link to post
Share on other sites

Hi,

 

Welcome to FusionCharts Forum :)

 

The charts get exported only after they become visible in the browser. It is because of this reason that you see a delay in exporting charts. 

 

This is an intended behavior of the export feature.

 

Hope this helps.

Share this post


Link to post
Share on other sites

 

I'm very sorry, may I did not describe my problem clearly , now describe it.

 

In IE browser, in a more content page, chart is at the bottom of the page,

chart rendering is completed, by dragging the scroll bar down, chart is normally seen in the screen.

And then drag the scroll bar up until the chart is not visible on the screen,

in this case, call "chart.exportChart ()" for server-side export on the javascript,

exporting is very slow, it takes about 3 minutes.

 

And in firefox browser, in the same situation exporting is faster.

 

How to avoid the problem in IE browser, thank you very much.

Share this post


Link to post
Share on other sites

 

 

I'm very sorry, may I did not describe my problem clearly , now describe it.

 

In IE browser, in a more content page, chart is at the bottom of the page,

chart rendering is completed, by dragging the scroll bar down, chart is normally seen in the screen.

And then drag the scroll bar up until the chart is not visible on the screen,

in this case, call "chart.exportChart ()" for server-side export on the javascript,

exporting is very slow, it takes about 3 minutes.

 

And in firefox browser, in the same situation exporting is faster.

 

How to avoid the problem in IE browser, thank you very much.

 

Hi,

 

We understand your issue but since this is an intended behavior of the export feature.

 

The speed of export may vary with the browsers and we do not have any native solution to this.

 

Hope this clarifies the query.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now