rjsherlock

Uncaught RuntimeException: #03091456 ex1.render() Error >> Unable to find the container DOM element.

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now