WebRoot/FusionChartsFree/Contents/ASP_BasicExample.html
(开头部分) 19KB这里只显示每个文件的开头 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 with ASP > Basic Examples </h2></td>
</tr>
<tr>
<td valign="top" class="text"><p>FusionCharts can effectively be used with ASP to plot dynamic data-driven charts. In this section, we'll show a few basic examples to help you get started.</p>
<p>We'll cover the following examples here:</p>
<ol>
<li>We'll use FusionCharts in ASP with a pre-built Data.xml (which contains data to plot)</li>
<li>We'll then change the above chart into a single page chart using dataXML method.</li>
<li>Finally, we'll use FusionCharts JavaScript class to embed the chart.</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 > ASP</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 contained in <span class="codeInline">Download Package > Code > FusionCharts</span> folder. When you run your samples, you need to make sure that the SWF files are in proper location. </td>
</tr>
<tr>
<td valign="top" class="header"> </td>
</tr>
<tr>
<td valign="top" class="header">Plotting a chart from data contained in <span class="codeInline">Data.xml</span></td>
</tr>
<tr>
<td valign="top" class="text"><p>Let's now get to building our first example. In this example, we'll create a "Monthly Unit Sales" chart using <span class="codeInline">dataURL</span> method. For a start, we'll hard code our XML data in a physical XML document <span class="codeInline">Data.xml </span>and then utilize it in our chart contained in an ASP Page (<span class="codeInline">BasicChart.asp</span>). </p>
<p>First let's have a look at the XML Data document:</p> </td>
</tr>
<tr>
<td valign="top" class="codeBlock"><graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' decimalPrecision='0' formatNumberScale='0' ><br />
<set name='Jan' value='462' color='AFD8F8' /><br />
<set name='Feb' value='857' color='F6BD0F' /><br />
<set name='Mar' value='671' color='8BBA00' /><br />
<set name='Apr' value='494' color='FF8E46' /><br />
<set name='May' value='761' color='008E8E' /><br />
<set name='Jun' value='960' color='D64646' /><br />
<set name='Jul' value='629' color='8E468E' /><br />
<set name='Aug' value='622' color='588526' /><br />
<set name='Sep' value='376' color='B3AA00' /><br />
后面还有 215 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。