niksii Report post Posted August 6, 2013 (edited) Hi. I tried to put pure Javascript to my page but console says: "Uncaught TypeError: Object #<Object> has no method 'setXMLUrl'". My code looks like this: <html> <head> <title>kokeilu</title> <script type="text/javascript" src="templates/FusionCharts/FusionCharts.js"></script> <script type="text/javascript" src="templates/FusionCharts/jquery.min.js"></script> </head> <body> <div id="chartContainer">Tähän tulee kuvaaja.</div> <script type="text/javascript"><!-- var myChart = new FusionCharts( "MSLine", "myChartId", "400", "300" ); myChart.setXMLUrl("templates/Data/esimerkkiData.xml"); myChart.render("chartContainer"); // --> </script> </body> </html> As you can see, it is very simple. I have MSLine.swf in the same folder with javascript-files (if it is needed to be there). For some reason I am not able to get this working. Edited August 6, 2013 by niksii Share this post Link to post Share on other sites
Guest Rishab Report post Posted August 6, 2013 (edited) Hi, Welcome to FusionCharts forum, There are four main JavaScript files needed to render the chart- FusionCharts.js, FusionCharts.HC.js, FusionCharts.HC.Charts.js and jquery.min.js. The error you are getting might be because of some FusionCharts JS files missing or there may be the path error . Kindly refer to the sample attached and modify it according to your needs. Hope this helps! Sample.zip Edited August 6, 2013 by Rishab Share this post Link to post Share on other sites
niksii Report post Posted August 6, 2013 Thank you very much! This helped. Share this post Link to post Share on other sites
Guest Rishab Report post Posted August 9, 2013 Glad to hear that your issue has been resolved. Share this post Link to post Share on other sites