Rama Rao

Script Error In Fusioncharts.hc.js

Recommended Posts

Hi,

I am using "MSColumn3DLineDY2.swf" . It is rendered well at first time display.But when it is being rendered after server event using Ajax,

It is giving a script error "SCRIPT5007: Unable to get property 'appendChild' of undefined or null reference " in FusionCharts.HC.js file.

 

Can somebody please let me know the error?

Share this post


Link to post
Share on other sites

Hi,

 

Can you please send us a sample code to replicate the isssue?

 

Also, can you please let us know the version of FusionCharts used?

Share this post


Link to post
Share on other sites

I am facing same issue. I am using Fusionchart 3.3.

Error is on line # 266 in FusionCharts.HC.js.

Statement that is giving error is "c.paper.defs.appendChild(i)", where c.paper.defs object is null.

 

This is the call trace:

 

Uncaught TypeError: Cannot read property 'appendChild' of null

window.Raphael.svg.d._setFillAndStroke @ FusionCharts.HC.js:266

window.Raphael.svg.u.attr @ FusionCharts.HC.js:285

V.createSlice.b @ FusionCharts.HC.Charts.js:104

V.updateSliceConf @ FusionCharts.HC.Charts.js:90

V.createSlice.b @ FusionCharts.HC.Charts.js:104

kb @ FusionCharts.HC.js:239

 

Also when I load page first time, I get "c.paper.defs" object filled as "[object SVGDefsElement]" and graph renders right.

However when I try to rerender graph by calling "FusionCharts(chartId).render();" statement on button click, I receive "c.paper.defs" as null and hence the error.

Edited by Anshuman

Share this post


Link to post
Share on other sites
 

Hi,

 

Please note support for rendering of charts, gauges, and maps in Adobe Flash has been deprecated since v3.4.0 or higher versions. SWF files are not needed after upgrading to v3.4.0 or higher.

 

Please check with the latest version of FusionCharts v3.10.1 and confirm if this issue occurs or not.

 

Download the package from this: http://www.fusioncharts.com/download/

 

Awaiting response.

Edited by Vishalika

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