denisagui Report post Posted October 22, 2012 (edited) Hi Folks. I've had some problems with the javascript graphics rendering in the last days. i used jsf. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:fc="http://www.fusioncharts.com"> <h:head> <script type="text/javascript" src="../../../FusionCharts/FusionCharts.js"></script> </h:head> <body> <fc:render chartId="LineAnualComparative" swfFilename="../../../FusionCharts/MSLine.swf" width="800" height="600" registerWithJS="true" renderer="javascript" debugMode="false" xml="#{linhaMB.comparativoAnual.xml}" /> //return a string with xml code. </body> </html> however , my web page debug show a null reference to the swfFilename as can be seen on the follow code, and my web page only displays "charty type not supported": <script type="text/javascript"> var chart_LineComparativoAnual = new FusionCharts('[b]null[/b]', 'LineComparativoAnual', '800', '600', '0', '1'); chart_LineComparativoAnual.setDataXML("<?xml version='1.0' encoding='ISO-8859-1'?><chart showValues='0'.../> </dataset></chart>"); chart_LineComparativoAnual.render('LineComparativoAnualDiv'); </script> somebody have a solution for this problem ? it's possible send me a example of how to do it ? tnks for all. obs: i tested in ie9, firefox and chome... both have the same problem. Edited October 22, 2012 by denisagui Share this post Link to post Share on other sites
Guest Bindhu Report post Posted October 23, 2012 Hi, You may use the JavaScript alias instead, in case of rendering JavaScript charts. Please use MSLine instead of ../../../FusionCharts/MSLine.swf in the swfFilename parameter. Hope this helps! Share this post Link to post Share on other sites
denisagui Report post Posted October 23, 2012 Hi, You may use the JavaScript alias instead, in case of rendering JavaScript charts. Please use MSLine instead of ../../../FusionCharts/MSLine.swf in the swfFilename parameter. Hope this helps! i tested with alias instead of file path, but the problem was not solved. i've been observed, the reference to the file remains null as described earlier. the example i sent was based on documentation avaliable in http://docs.fusioncharts.com/widgets/ --> Home > Creating your first chart > Using server-side scripts / Using J2EE / Code to create JavaScript chart it's possivel send me an example with these references ? Share this post Link to post Share on other sites
Guest Bindhu Report post Posted October 24, 2012 Hi, Can you please let us know if you are trying to render MSLine chart or AngularGauge? What kind of sample do you actually require? Do you need a JSF sample or HTML sample? Share this post Link to post Share on other sites
denisagui Report post Posted October 25, 2012 i solved this problem based on the analysis that was done during the last week. <fc:render chartId="LineAprovadaNegadajavascript" filename="MSLine" width="584" height="270" debugMode="false" xml="#{linhaMB.linhaAprovNega.xml}" renderer="javascript" /> i changed swfFilename for filename and everything went as expected, the graph was generated correctly. Share this post Link to post Share on other sites
denisagui Report post Posted October 26, 2012 (edited) i believe many peoples have or will have the same problem, then it would be a good idea to modify the documentation. PS: well that a supreme being could present me with a suite... maybe for continue my studies... a joke! Edited October 26, 2012 by denisagui Share this post Link to post Share on other sites
Guest Bindhu Report post Posted October 31, 2012 Hi, The swfFilename attribute is working fine for us. It should work for everyone else too. Hope this helps! Share this post Link to post Share on other sites