Sign in to follow this  
mimsc

Unable To Find The Container Dom Element

Recommended Posts

I am trying the evaluation out. The chart will not render. This is my code:

 

Some error in FusionCharts.js is being thrown?????? Please help

 

<script src="../js/FusionCharts/FusionCharts.js" type="text/javascript"></script>

 

<script type="text/javascript">

 

<!--

 

var myChart = new FusionCharts( "../js/FusionCharts/Column3D.swf",

"myChartId", "400", "300", "0", "1" );

 

myChart.setJSONData( {

"chart":

{

"caption" : "Weekly Sales Summary" ,

"xAxisName" : "Week",

"yAxisName" : "Sales",

"numberPrefix" : "$"

},

 

"data" :

[

{ "label" : "Week 1", "value" : "14400" },

{ "label" : "Week 2", "value" : "19600" },

{ "label" : "Week 3", "value" : "24000" },

{ "label" : "Week 4", "value" : "15700" }

]

} );

 

myChart.render("div_view");

 

// -->

 

</script>

<div id="div_view">FusionCharts will load here!</div>

 

 

This is where the error is thrown:

 

(function(){var a=FusionCharts(["private","ErrorHandler"]);if(a!==void 0){var i={type:"TypeException",range:"ValueRangeException",impl:"NotImplementedException",param:"ParameterException",run:"RuntimeException",comp:"DesignTimeError",undefined:"UnspecifiedException"},h=function(f,b,e,c,d,o){var h="#"+b+" "+(f?f.id:"unknown-source")+c+" "+o+" >> ";d instanceof Error?(d.name=i[e],d.module="FusionCharts"+c,d.level=o,d.message=h+d.message,h=d.message,window.setTimeout(function(){throw d

 

Edited by mimsc

Share this post


Link to post
Share on other sites

I am trying the evaluation out. The chart will not render. This is my code:

 

Some error in FusionCharts.js is being thrown?????? Please help

 

<script src="../js/FusionCharts/FusionCharts.js" type="text/javascript"></script>

 

<script type="text/javascript">

 

<!--

 

var myChart = new FusionCharts( "../js/FusionCharts/Column3D.swf",

"myChartId", "400", "300", "0", "1" );

 

myChart.setJSONData( {

"chart":

{

"caption" : "Weekly Sales Summary" ,

"xAxisName" : "Week",

"yAxisName" : "Sales",

"numberPrefix" : "$"

},

 

"data" :

[

{ "label" : "Week 1", "value" : "14400" },

{ "label" : "Week 2", "value" : "19600" },

{ "label" : "Week 3", "value" : "24000" },

{ "label" : "Week 4", "value" : "15700" }

]

} );

 

myChart.render("div_view");

 

// -->

 

</script>

<div id="div_view">FusionCharts will load here!</div>

 

 

This is where the error is thrown:

 

(function(){var a=FusionCharts(["private","ErrorHandler"]);if(a!==void 0){var i={type:"TypeException",range:"ValueRangeException",impl:"NotImplementedException",param:"ParameterException",run:"RuntimeException",comp:"DesignTimeError",undefined:"UnspecifiedException"},h=function(f,b,e,c,d,o){var h="#"+b+" "+(f?f.id:"unknown-source")+c+" "+o+" >> ";d instanceof Error?(d.name=i[e],d.module="FusionCharts"+c,d.level=o,d.message=h+d.message,h=d.message,window.setTimeout(function(){throw d

 

 

 

Fixed it....<div id="div_view">FusionCharts will load here!</div>

 

has tobe BEFORE the JS

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
Sign in to follow this