Sign in to follow this  
Atrhick

Chart Not Displayign

Recommended Posts

I have having a problem i have this code it looks perfect but its not working for some reason. I have the JavaScript file FusionCharts.js linked currently and all of my pathing info is right

 

<script type="text/javascript">	
	//Instantiate the Chart	
	var chart_myFirst = new FusionCharts("http://mydomain.com/admin/FusionCharts/FCF_StackedColumn2D.swf", "myFirst", "855", "220", "1", "0");
 	chart_myFirst.setTransparent("false");

	//Provide entire XML data using dataXML method
	chart_myFirst.setDataXML("
	<graph bgColor="FCFCFC" xaxisname="Month" yaxisname="Revenue" canvasBorderColor="333333" numdivlines="4" divLineColor="333333" yAxisMaxValue="100" decimalPrecision="1" numberPrefix="$">
		<dataset seriesname="Leads Generatd" color="AFD8F8">
			<set name='2' value='2' />
			<set name='2' value='2' />
			<set name='C' value='C' />
			<set name='C' value='C' />
			<set name='2' value='2' />
			<set name='2' value='2' />
		</dataset>
		<dataset seriesname="Leads Sold" color="F6BD0F">
			<set name='2' value='2' />
			<set name='2' value='2' />
			<set name='2' value='C' />
			<set name='2' value='C' />
			<set name='2' value='2' />
			<set name='2' value='2' />
		</dataset>
		<trendLines>
			<line startValue="1" endValue="1000" color="8BBA00" thickness="1" alpha="20" showOnTop="1" displayValue="Estimated" isTrendZone="1"/>
		</trendLines>
	</graph>")
	//Finally, render the chart.
	chart_myFirst.render("myFirstDiv");
</script>	

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum! smile.gif

 

You would need to keep the points stated below:

 

1.If you are getting the data from another domain, this would not work, as Flash charts block cross domain data transfer.

 

2. If you are putting the files in any folder, which is not accessible by your web-site the charts are likely to fail.

 

3. If you have segregated the files in separate folders, please make sure you are putting the correct relative paths of the files in your code.

 

Hope this helps.

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