dsav

Rendercharthtml() Does Not Display Chart In Ie9

Recommended Posts

We are trying to use the RenderChartHTML method to display our charts, but it seems that it doesn't work in IE9.

 

 

 

IE8 and other browsers seem to also throw javascript errors from time to time when using the RenderChartHTML method.

 

 

 

 

 

here's the simple code:

 

Literal1.Text = FusionCharts.RenderChartHTML("FusionCharts/Line.swf", "Data/Data.xml", "", "myFirst", "600", "300", false, true);

 

 

here's the xml data:

 

 


<chart caption='Data' xAxisName='' yAxisName='m3' showValues='0'
formatNumberScale='0' showBorder='1'>
<set label='12:00' value='12.25' />
 <set label='13:00' value='12.25' />
 <set label='14:00' value='12.25' />
 <set label='15:00' value='12.25' />
 <set label='16:00' value='12.25' />
 <set label='17:00' value='12.25' />
 <set label='18:00' value='12.25' />
 <set label='19:00' value='14.25' />
 <set label='20:00' value='14.25' />
 <set label='21:00' value='12.25' />
 <set label='22:00' value='12.25' />
 <set label='23:00' value='12.25' />
 <set label='00:00' value='12.25' />
 <set label='01:00' value='12.25' />
 <set label='02:00' value='10.25' />
 <set label='03:00' value='9.25' />
 <set label='04:00' value='10.25' />
 <set label='05:00' value='11.25' />
 <set label='06:00' value='12.25' />
 <set label='07:00' value='12.25' />
 <set label='08:00' value='12.25' />
 <set label='09:00' value='12.25' />
 <set label='10:00' value='12.25' />
 <set label='11:00' value='12.25' />
</chart>

 

 

 

 

We are using a licenced version of FusionCharts that we downloaded about a month ago.

 

 

 

The RenderChart() method works fine in all browsers, but we want to use the RenderChartHTML() method so that we can update the chart asynchronously (the recommended suggestions for using FC in update panels also breaks for us, but that's a different story).

 

RenderChartHTML() doesn't display anything in IE9, and in other browsers it seems to work (except for some javascript errors)

 

 

 

Any suggestions?

Edited by dsav

Share this post


Link to post
Share on other sites

I should also explain why we aren't using the suggested code to allow for charts to work asynchronously.

 

 

The javascript used in the suggested work around is actually breaking some other 3rd party controls we use (telerik controls).

Share this post


Link to post
Share on other sites
Guest Sumedh

I should also explain why we aren't using the suggested code to allow for charts to work asynchronously.

 

 

The javascript used in the suggested work around is actually breaking some other 3rd party controls we use (telerik controls).

 

Hi,

 

RenderChartHTML method returns a string containing HTML that renders a chart. This method is deprecated.

 

So, RenderChart is the recommended method. This method returns HTML and JavaScript that renders chart.

 

Major functionalities of the chart works using JavaScript API.

 

Refer the following URl for more information:

http://docs.fusioncharts.com/charts/contents/?guide-for-web-developers/csnet/CS_BasicExample.html

 

Find attached illustration for your reference which uses RenderChart method.

Test_Pie.zip

Share this post


Link to post
Share on other sites

Hi,

 

RenderChartHTML method returns a string containing HTML that renders a chart. This method is deprecated.

 

So, RenderChart is the recommended method. This method returns HTML and JavaScript that renders chart.

 

Major functionalities of the chart works using JavaScript API.

 

Refer the following URl for more information:

http://docs.fusionch...sicExample.html

 

Find attached illustration for your reference which uses RenderChart method.

 

 

 

 

 

Thanks. We already had the RenderChart method working, just not in an asynchronous manner... The RenderChartHTML method seemed to fix that, so we thought we were on the right path.

 

 

 

I must have missed where it said that the RenderChartHTML method was deprecated in the documentation!

 

 

 

Back to the drawing board!

Share this post


Link to post
Share on other sites
Guest Sumedh

Thanks. We already had the RenderChart method working, just not in an asynchronous manner... The RenderChartHTML method seemed to fix that, so we thought we were on the right path.

 

 

 

I must have missed where it said that the RenderChartHTML method was deprecated in the documentation!

 

 

 

Back to the drawing board!

 

 

 

Hi,

 

Refer his post for more information: http://forum.fusioncharts.com/topic/11696-update-panel-problems/page__p__45819__hl__update+panel__fromsearch__1#entry45819

Share this post


Link to post
Share on other sites

Hi,

 

I am afraid, we are not aware of this issue as of now.

 

However, you can modify this hook JS files as per your requirement and implement it in your application such way that it does not break other controls.

 

Hope this helps.

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