WebRoot/FusionChartsFree/Contents/PHPClass_BasicExamples.html
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>FusionCharts Free Documentation</title>
<link rel="stylesheet" href="Style.css" type="text/css" />
</head>
<body>
<table width="98%" border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td><h2 class="pageHeader">Using FusionCharts PHP Class > Basic Examples </h2></td>
</tr>
<tr>
<td valign="top" class="text"><p>FusionCharts can effectively be used with PHP to plot dynamic data-driven charts. With FusionCharts PHP Class chart rendering becomes even easier. Let's see how to make use of FusionCharts PHP Class functions and create charts in few easy steps. </p>
<p>We'll cover the following examples here:</p>
<ol>
<li>Creating a simple chart using FusionCharts PHP Class </li>
<li>Creating a chart with external XML file created using FusionCharts PHP Class</li>
</ol>
<p>Let's quickly see each of them. <strong>Before you proceed with the contents in this page, we strictly recommend you to please go through the section "How FusionCharts works?".</strong> </p> </td>
</tr>
<tr>
<td valign="top" class="text"> </td>
</tr>
<tr>
<td valign="top" class="highlightBlock">All code discussed here is present in <span class="codeInline">Download Package > Code > PHPClass</span> > <span class="codeInline">BasicExample</span> folder. </td>
</tr>
<tr>
<td valign="top" class="text"> </td>
</tr>
<tr>
<td valign="top" class="header">Setting up the charts for use </td>
</tr>
<tr>
<td valign="top" class="text">In our code, we've used the charts and <span class="codeInline">FusionCharts.js</span> contained in <span class="codeInline">Download Package > Code > FusionCharts</span> folder. We have kept FusionCharts_Gen.php and FusionCharts.php in <span class="codeInline">Download Package > Code > PHPClass > Includes </span>folder. When you run your samples, you need to make sure that all the files are in proper location. </td>
</tr>
<tr>
<td valign="top" class="header"> </td>
</tr>
<tr>
<td valign="top" class="header">Creating a simple chart</td>
</tr>
<tr>
<td valign="top" class="text"><p>Let's now get to building our first chart. In this example, we'll create a "Monthly Unit Sales" chart. </p> </td>
</tr>
<tr>
<td valign="top" class="text"> </td>
</tr>
<tr>
<td valign="top" class="codeBlock">
<p><?php<br />
<span class="codeComment">//We've included ../Includes/FusionCharts_Gen.php, which contains FusionCharts PHP Class<br />
//to help us easily embed the charts.</span><br />
include("../Includes/FusionCharts_Gen.php");<br />
?><br />
<HTML><br />
<HEAD><br />
<TITLE><br />
后面还有 255 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。