Sign in to follow this  
olimaz

Php Class Not Working Fine

Recommended Posts

I've managed to succesfully generate simple charts (line, bar, pie) using the PHP class provided.

 

usually I start with

 

<?
$FC = new FusionCharts("Column3D","600","300");
?>

 

and everything goes fine.

 

 

 

 

But when I try to make a 3D chart and start with

 

<?
$FC = new FusionCharts("MSCombi3D","600","300");
?>

 

 

The chart isn't plotted. Not even the swf file is loaded. I'm guessing the PHP Class is wrong, since the generated code has the swf file name missing. Just like this one: (check the line "var chart_MSCombi...")

 





<!-- START Script Block for Chart MSCombi3D1 -->

	<div id="MSCombi3D1Div">

		Chart.
	</div>
	<script type="text/javascript">	
		//Instantiate the Chart	
		var chart_MSCombi3D1 = new FusionCharts("./fusioncharts/.swf", "MSCombi3D1", "600", "300", "0", "0", "","noScale","EN");
  	chart_MSCombi3D1.setTransparent("false");

		//Provide entire XML data using dataXML method
	chart_MSCombi3D1.setDataXML("<chart caption='Titulin Perez' xAxisName='Mes' yAxisName='Casos'  ><set  value='20'  /><set  value='30'  /><set  value='40'  /><set  value='50'  /><set  value='60'  /><set  value='70'  /></chart>")			//Finally, render the chart.
		chart_MSCombi3D1.render("MSCombi3D1Div");
	</script>	
<!-- END Script Block for Chart MSCombi3D1 -->

 

 

what can I do?

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum! smile.gif

 

FusionCharts supports data in single series and multi series format.

 

Single-series charts in FusionCharts, namely Column 2D, Column 3D, Bar 2D, Line, Area 2D, Pie 2D, Pie 3D, Doughnut 2D, Doughnut 3D, Pareto 3D and Pareto 3D.

 

Multi-series charts are charts where you compare multiple series of data. ex: MSColumn 2D, MSColumn3D,MSCombi3D etc.

 

To know more, please visit the links below:

 

http://www.fusioncha...ngleSeries.html

 

http://www.fusioncha...ultiSeries.html

 

http://www.fusioncha...ombination.html

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