smokinguns Report post Posted January 10, 2007 hey all, Im trying to plot a 3d Pie chart using the "Using FusionCharts with PHP > Plotting data from a database" example given in the documentation.. Im able to retrieve data but the chart isnt rendered on the web page.. I get the following error "FusionCharts is not defined". The XML seems to be having the right data from the Database.. When i right clicked on the page and viewed the source , this was the line that had the error: "var chart_mystats = new FusionCharts("/FusionCharts/Pie3D.swf", "mystats", "600", "300", "0", "0"); Here is my directory structure: / public_html / myproj/FusionCharts.php / public_html / myproj/FusionCharts/FusionCharts.js / public_html / myproj/FusionCharts/Pie3D.swf What could be the problem??? here is the Share this post Link to post Share on other sites
Pallav Report post Posted January 10, 2007 Can you please make sure that you've included FusionCharts.js file in your HTML/PHP page? Share this post Link to post Share on other sites
smokinguns Report post Posted January 11, 2007 hey pallav, here is my directory structure /public_html/myproj/FusionCharts/FusionCharts.js /public_html/myproj/FusionCharts/Pie3d.swf I have included FusionCharts.js in my html page which is: /public_html/myproj/charts.html and this is my php page /public_html/myproj/charts.php Share this post Link to post Share on other sites
Pallav Report post Posted January 11, 2007 Can you please post the PHP page as attachment (zip)? Share this post Link to post Share on other sites