WebRoot/FusionChartsFree/Code/PHPClass/ArrayExample/MultiSeries.php

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
//We've included ../Includes/FusionCharts_Gen.php, which contains FusionCharts PHP Class
//to help us easily embed the charts.
include("../Includes/FusionCharts_Gen.php");
?>
<HTML>
<HEAD>
	<TITLE>
	FusionCharts Free - Array Example using Multi Series Column 3D Chart
	</TITLE>
	<?php
	//You need to include the following JS file, if you intend to embed the chart using JavaScript.
	//Embedding using JavaScripts avoids the "Click to Activate..." issue in Internet Explorer
	//When you make your own charts, make sure that the path to this JS file is correct. Else, you would get JavaScript errors.
	?>	
	<SCRIPT LANGUAGE="Javascript" SRC="../../FusionCharts/FusionCharts.js"></SCRIPT>
	<style type="text/css">
	<!--
	body {
		font-family: Arial, Helvetica, sans-serif;
		font-size: 12px;
	}
	-->
	</style>
</HEAD>
<BODY>

<CENTER>
<h2><a href="http://www.fusioncharts.com" target="_blank">FusionCharts Free</a> Examples</h2>
<h4>Plotting multi-series chart from data contained in Array.</h4>
<?php

	
	//In this example, using FusionCharts PHP Class we plot 
	//we plot a mulitseries chart from data contained in arrays
	
	/* The arrays need to be of the following  structure :
	
		1. Array to store Category Namesnames :
		
		  A single dimensional array storing the category names
		
		2. A 2 Dimensional Array to store data values 

			** Each row will store data for 1 dataset
		 
		 Column 1 will store : Dataset Series Name.
		 Column 2 will store : Dataset attributes 
		  		(as list separated by delimiter.)
		 Column 3 and rest will store : values of the dataset
		  
	*/
	//Let's store the sales data for 6 products in our array. We also store the name of products. 
	
	//Store Name of Products
	$arrCatNames[0] = "Product A";
	$arrCatNames[1] = "Product B";
	$arrCatNames[2] = "Product C";
	$arrCatNames[3] = "Product D";
	$arrCatNames[4] = "Product E";
后面还有 47 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。