stranieroinpatria Report post Posted October 11, 2010 (edited) Hi all, I had a problem to use anyone of the api's described in the documentation about FusionWidgets( http://www.fusioncha...m/widgets/docs/ ).The error was always ".... is not a function". I can use just setDataXML and setDataURL. Then I tried to create a very simple page to understand wich is the problem: Include FusionCharts.js v3 and create the function used for clear the chart... <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>PulseFCTry</title> <script type="text/javascript" src="./custom/js/FusionCharts.js"></script> <script type="text/javascript"> function clearChart(){ chart=FusionCharts("fusionLineHOST00M"); chart.clearChart(); } </script> </head> ...after that I create the Chart and rendered it into a div (flag JS to 1) <body> <div id="divprova"></div> <script type="text/javascript"> var myChart = new FusionCharts( "./chart/RealTimeStackedArea.swf" , "fusionLineHOST00M" ,"520","200","0","1"); myChart.setDataXML('<chart dataStreamURL="/ws/fusionLineUpd?idChart=" refreshInterval="5..........etc.......); myChart.render('divprova'); </script> <input type="button" onclick="clearChart()" value="Submit"> </body> The result on click is "chart.clearChart is not a function" Why?? PS. I'm running the site from a local server not from filesystem Edited October 11, 2010 by stranieroinpatria Share this post Link to post Share on other sites
stranieroinpatria Report post Posted October 12, 2010 (edited) After a week that I've posted this question (another thread opened is http://forum.fusioncharts.com/forum/30-jvscript-problems/) nobody gave me a response SO the only conclusion I can find is that the page of the documentation that explain the javascript methods for FusionWidgets is completely USELESS and there isn't any ways to use that. AM I WRONG?CAN SOMEBODY JUST GIVE ME A CLEAR ANSWER?This situation is a bit frustrating.... Edited October 12, 2010 by stranieroinpatria Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted October 12, 2010 Hi, As of now, FusionWidgets does not support the same. As yet this is supported by FusionCharts v3.2 only. Could you please try using "getChartFromId" in place of "FusionCharts". I hope this helps. Share this post Link to post Share on other sites
stranieroinpatria Report post Posted October 12, 2010 Hi, As of now, FusionWidgets does not support the same. As yet this is supported by FusionCharts v3.2 only. Could you please try using "getChartFromId" in place of "FusionCharts". I hope this helps. Hi, thank's for your reply. Use getChartFromId helps how?I can retrieve the reference of FusionCharts. I'm asking about this methods explained in the documentation: http://www.fusioncha...m/widgets/docs/ How can I use that? Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted October 19, 2010 Hi, Could you please resend us the link that you have mentioned in the previous post as the link seems to be not working? Awaiting your reply. Share this post Link to post Share on other sites
stranieroinpatria Report post Posted October 19, 2010 Hi, Could you please resend us the link that you have mentioned in the previous post as the link seems to be not working? Awaiting your reply. http://www.fusioncharts.com/widgets/docs/ Data-streaming charts > JavaScript API Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted November 3, 2010 Hi, We have sent you a sample through our corporate account regarding the same. Hope that helps. Share this post Link to post Share on other sites