rvats Report post Posted March 20, 2012 (edited) After upgrading to SR3 for Fusion Charts XT, we are facing issues when calling getSVG() twice on a chart object: First issue: First call: this.jsVars.hcObj.getSVG() (returns the SVG string correctly) Second call on the same chart: this.jsVars.hcObj.getSVG() (throws a javascript error in the console) This happens because of the call to chartCopy.destroy() in the getSVG() method: // get the SVG from the container's innerHTML svg = chartCopy.container.innerHTML; // free up memory options = null; chartCopy.destroy(); (THIS CALL CAUSES THE ISSUE) discardElement(sandbox); Commenting out that call fixes the issue for now, but we would like the memory to be recollected ideally. Second issue: The getSVG() method returns the visibility property incorrectly: In Chrome, the SVG string has: visibility="" which is incorrect since the property cannot be blank (fixed by: .replace(/visibility=""/g, '')) In IE, the SVG string has just prop1="val1" visibility prop2="val2", which is incorrect syntax (fixed by: .replace(/ visibility /g, ' ')) Edited March 20, 2012 by rvats Share this post Link to post Share on other sites
KrashLog Report post Posted April 5, 2012 Hi, We're having the same issue, any words on a fix coming soon? Share this post Link to post Share on other sites
Guest Sumedh Report post Posted April 6, 2012 Hi, We are working on this issue. We will update you on this, as it will be fixed. Share this post Link to post Share on other sites
cruzbruno Report post Posted July 18, 2012 I'm getting the same problem, hope it gets fixed soon. Thanks Share this post Link to post Share on other sites
Guest Sumedh Report post Posted July 23, 2012 Hi, We are still working on this issue. We will update you soon. Share this post Link to post Share on other sites
Steve Grove Report post Posted November 13, 2012 I can confirm that this is still present in Fusion Charts Suite Nov 2012 : calling getSVGString() on the same chart twice results in a JS error shown below var svgstr = FusionCharts(cid).ref.getSVGString(); Uncaught TypeError: Cannot set property 'enabled' of undefined FusionCharts.HC.js:375 h.getSVGFusionCharts.HC.js:375 wb.getSVGStringFusionCharts.HC.js:397 (anonymous function)local.example.com:157 e.extend.eachwww.examplejquery.min.js:2 e.fn.e.eachjquery.min.js:2 (anonymous function)local.example.com:155 f.Callbacks.njquery.min.js:2 f.Callbacks.o.fireWithjquery.min.js:2 wjquery.min.js:4 f.support.ajax.f.ajaxTransport.send.djquery.min.js:4 Share this post Link to post Share on other sites
Sanjukta Report post Posted November 14, 2012 Hi, I can confirm that this is still present in Fusion Charts Suite Nov 2012 : calling getSVGString() on the same chart twice results in a JS error shown below var svgstr = FusionCharts(cid).ref.getSVGString(); Uncaught TypeError: Cannot set property 'enabled' of undefined FusionCharts.HC.js:375 h.getSVGFusionCharts.HC.js:375 wb.getSVGStringFusionCharts.HC.js:397 (anonymous function)local.example.com:157 e.extend.eachwww.examplejquery.min.js:2 e.fn.e.eachjquery.min.js:2 (anonymous function)local.example.com:155 f.Callbacks.njquery.min.js:2 f.Callbacks.o.fireWithjquery.min.js:2 wjquery.min.js:4 f.support.ajax.f.ajaxTransport.send.djquery.min.js:4 Please note that we had found a fix which seemed to have been breaking the link of other implementations. Hence, we are probing further into analysis and come up with a solution that would not affect the other implementations. We shall update you once we come up with the solution. Thank you for your continued patience and support. Share this post Link to post Share on other sites