nonshatter Report post Posted September 29, 2010 Hi, I am new to Fusion Charts. I have an issue when trying the examples on a linux machine (it worked fine previously on windows). When I load the chart from the browser, all I get is the word "Chart" and nothing else. If I load an .swf file from the /Charts sub-directory then the graphs display, which means I definitely have flash installed. Here is the code that isn't working: <?php //We've included ../Includes/FusionCharts.php, which contains functions //to help us easily embed the charts. include("/srv/www/htdocs/site/php/fc/FusionCharts.php"); ?> <HTML> <HEAD> <?php //You need to include the following JS file, if you intend to embed the chart using JavaScript. //When you make your own charts, make sure that the path to this JS file is correct. Else, you //would get JavaScript errors. ?> <script LANGUAGE="Javascript" SRC="/srv/www/htdocs/site/php/fc/FusionCharts_Evaluation/Charts/FusionCharts.js"></SCRIPT> <TITLE>FusionCharts - Simple Column 3D Chart</TITLE> </HEAD> <BODY> <?php //Create the chart - Column 3D Chart with data from Data/Data.xml echo renderChart("/srv/www/htdocs/site/php/fc/FusionCharts_Evaluation/Charts/Column3D.swf", "/srv/www/htdocs/site/php/fc/test.xml", "", "myFirst", 600, 300, false, true); ?> </BODY> </HTML> Can anyone tell me what the problem could be? Many thanks. Share this post Link to post Share on other sites
Rohit Kumar Report post Posted September 29, 2010 Hello, Welcome to FusionCharts forum. Please make sure that the path of FusionCharts.js, FusionCharts.php and Column3D.swf files are correct. Hope this helps. Hi, I am new to Fusion Charts. I have an issue when trying the examples on a linux machine (it worked fine previously on windows). When I load the chart from the browser, all I get is the word "Chart" and nothing else. If I load an .swf file from the /Charts sub-directory then the graphs display, which means I definitely have flash installed. Here is the code that isn't working: <?php //We've included ../Includes/FusionCharts.php, which contains functions //to help us easily embed the charts. include("/srv/www/htdocs/site/php/fc/FusionCharts.php"); ?> <HTML> <HEAD> <?php //You need to include the following JS file, if you intend to embed the chart using JavaScript. //When you make your own charts, make sure that the path to this JS file is correct. Else, you //would get JavaScript errors. ?> <script LANGUAGE="Javascript" SRC="/srv/www/htdocs/site/php/fc/FusionCharts_Evaluation/Charts/FusionCharts.js"></SCRIPT> <TITLE>FusionCharts - Simple Column 3D Chart</TITLE> </HEAD> <BODY> <?php //Create the chart - Column 3D Chart with data from Data/Data.xml echo renderChart("/srv/www/htdocs/site/php/fc/FusionCharts_Evaluation/Charts/Column3D.swf", "/srv/www/htdocs/site/php/fc/test.xml", "", "myFirst", 600, 300, false, true); ?> </BODY> </HTML> Can anyone tell me what the problem could be? Many thanks. Share this post Link to post Share on other sites
nonshatter Report post Posted September 29, 2010 Thanks for your quick reply Rohit. I have resolved the problem. I started again from scratch (creating a new directory structure) which seemed to do the trick, also I used relative paths instead of the full path to the required files. Many thanks Share this post Link to post Share on other sites
Rohit Kumar Report post Posted September 29, 2010 Hi, You are most welcome. Keep smiling and keep FusionCharting. Thanks for your quick reply Rohit. I have resolved the problem. I started again from scratch (creating a new directory structure) which seemed to do the trick, also I used relative paths instead of the full path to the required files. Many thanks Share this post Link to post Share on other sites