rjsherlock Report post Posted January 26, 2016 Here is my code: <?php // This is a simple example on how to draw a chart using FusionCharts and PHP. // We have included includes/fusioncharts.php, which contains functions // to help us easily embed the charts. echo' <html> <script type="text/javascript" src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script> <script type="text/javascript" src="fusioncharts/js/themes/fusioncharts.theme.ocean.js"></script> </html> '; include(dirname(__FILE__) . "/fusioncharts/fusioncharts.php"); // Create the chart - Pie 3D Chart with data given in constructor parameter $columnChart = new FusionCharts("column2d", "ex1" , 600, 400, "chart-1", "json", '{ "chart":{ "caption":"Harry\'s SuperMart", "subCaption":"Top 5 stores in last month by revenue", "numberPrefix":"$", "theme":"ocean" }, "data":[ { "label":"Bakersfield Central", "value":"880000" }, { "label":"Garden Groove harbour", "value":"730000" }, { "label":"Los Angeles Topanga", "value":"590000" }, { "label":"Compton-Rancho Dom", "value":"520000" }, { "label":"Daly City Serramonte", "value":"330000" } ] }'); // Render the chart $columnChart->render(); ?> Here is the error I am getting: Uncaught RuntimeException: #03091456 ex1.render() Error >> Unable to find the container DOM element. I am using the example from the site..... Share this post Link to post Share on other sites
Vishalika Report post Posted January 27, 2016 Hi, Welcome to FusionCharts Forum! For the PHP wrapper to work the main .js file should be included. Refer this for more details: http://www.fusioncharts.com/dev/using-with-server-side-languages/php/introduction.html Hope this helps. Share this post Link to post Share on other sites
Rupali Report post Posted December 5, 2017 Hi, Please guide me how to integrate the Fusion Charts guage with polymer project Share this post Link to post Share on other sites
Akash Biswas Report post Posted December 6, 2017 Hi Rupali, FusionCharts can be integrated in a Polymer Application by defining a custom element and registering it to a class. Then this custom element is used to render the chart on a page. Please refer to the below blog post link for steps to create a PolymerJS sample to render FusionCharts along with a sample for reference : https://www.fusioncharts.com/blog/charts-polymer-application/ Thanks, Akash. Share this post Link to post Share on other sites