Sign in to follow this  
ericfledderman

Chart Is Not Displaying

Recommended Posts

I am having trouble getting my chart to display. I've tried using both the Flash and JavaScript object methods. The Flash object method gives a blank "movie cannot be loaded" screen. The JavaScript object method gives me the standard "FusionCharts! Will be here!" message.

 

Here's the HTML:

<html>
<head>
   	<script language="JavaScript" src="FusionCharts/FusionCharts.js"></script>
</head>

<body bgcolor="#ffffff">
<div id="chartdiv" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div>
<script type="text/javascript">
   	var myChart = new FusionCharts("FusionCharts/MSLine.swf", "myChartId", "900", "600", "0", "0");
   	myChart.setDataURL("Data.xml");
   	myChart.render("chartdiv");
</script>
</body>
</html>

 

Here's the XML:

<chart caption='Personnel and Incidents/Installs Count by Month' xAxisName='Month' yAxisName='Amount'> 
  <categories>
 	<category Label="Jan '11"/>
 	<category Label="Feb '11"/>
 	<category Label="Mar '11"/>
 	<category Label="Apr '11"/>
 	<category Label="May '11"/>
 	<category Label="Jun '11"/>
 	<category Label="Jul '11"/>
 	<category Label="Aug '11"/>
 	<category Label="Sep '11"/>
 	<category Label="Oct '11"/>
 	<category Label="Nov '11"/>
 	<category Label="Dec '11"/>
  </categories>
  <dataset seriesName="Personnel">
  	<set  value='7' /> 
  	<set  value='6' /> 
  	<set  value='7' /> 
  	<set  value='6' />
  	<set  value='6' /> 
  	<set  value='5' /> 
  	<set  value='5' /> 
  	<set  value='8' />
  	<set  value='8' /> 
  	<set  value='8' /> 
  	<set  value='8' /> 
  	<set  value='7' />
  </dataset>
  <dataset seriesName="Incidents (Hundreds)"> 
  	<set  value='21.18' /> 
  	<set  value='24.67' />
  	<set  value='28.85' /> 
  	<set  value='29.11' /> 
  	<set  value='33.40' /> 
  	<set  value='38.51' /> 
  	<set  value='33.58' /> 
  	<set  value='36.84' /> 
  	<set  value='32.43' /> 
  	<set  value='34.14' /> 
  	<set  value='37.26' /> 
  	<set  value='34.93' /> 
  </dataset>
  <dataset seriesName="Wug Adds">
  	<set  value='3.63' /> 
  	<set  value='1.40' /> 
  	<set  value='1.40' />
  	<set  value='4.26' /> 
  	<set  value='4.13' /> 
  	<set  value='2.24' /> 
  	<set  value='.68' /> 
  	<set  value='1.30' /> 
  	<set  value='1.02' /> 
  	<set  value='3.14' /> 
  	<set  value='1.81' /> 
  	<set  value='0.6' /> 
  </dataset>
  <dataset seriesName="Composite">
  	<set  value='24.81' /> 
  	<set  value='26.07' /> 
  	<set  value='30.25' /> 
  	<set  value='33.37' /> 
  	<set  value='37.53' /> 
  	<set  value='40.75' /> 
  	<set  value='38.14' /> 
  	<set  value='33.45' /> 
  	<set  value='37.28' /> 
  	<set  value='39.07' /> 
  	<set  value='35.53' /> 
  </dataset>
</chart>

 

I have confirmed that the chart SWF files are within the FusionCharts directory aswell as FusionCharts.js and jquery.js

Flash is installed and Activex running. What could I be doing wrong here?

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi

Thanks for the post.

 

The HTML and XML code you provided is absolutely correct and rendering charts both in flash and JavaScript.(see attachment: Demo.PNG)

Could you please check :

  • Check if the SWF path is properly provided in your HTML page is correct. Also, check if the SWF file actually exists there.
  • If you're working on an Operating System that uses case-sensitive file names (e.g. Mac or Linux), check for the case of path and SWF file.
  • Check if you've Adobe Flash Player 10 (or above) installed on your machine.
  • Check whether you've enabled your browser to show ActiveX controls. Normally, it is enabled by default.
  • Enable the JavaScript debug mode and check the error while rendering in JavaScript.

Hope this helps!!

 

Happy FusionCharting :D

post-23588-0-66552800-1323403717_thumb.png

Edited by Sashibhusan

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