WebRoot/FusionChartsFree/Contents/DataXML.html

(开头部分) 8KB

这里只显示每个文件的开头 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">dataXML method</h2></td>
  </tr>
  <tr> 
    <td valign="top" class="text"><p>In our previous examples, we had used the 
        <span class="codeInline">dataURL</span> method to provide data to FusionCharts. 
        In dataURL method, the data is contained in an external physical XML document 
        (like <span class="codeInline">Data.xml</span>) or relayed by a URL (like 
        <span class="codeInline">ReturnXMLData.asp</span>). </p>
      <p>There also exists another method to provide the XML data to FusionCharts 
        - <span class="codeInline"><strong>dataXML</strong></span><strong> method</strong>. 
      </p>
      <p>In this method, the XML Data exists in the same HTML page in which FusionCharts 
        is embedded. When working with this method, you don't need to create the 
        external XML document (like <span class="codeInline">Data.xml</span>). 
        Instead you provide it in the HTML page. </p>
      <p>Let's quickly see an example of the above.</p></td>
  </tr>
  <tr> 
    <td valign="top" class="text">&nbsp;</td>
  </tr>
  <tr> 
    <td valign="top" class="header">Using dataXML method in direct HTML embedding</td>
  </tr>
  <tr> 
    <td valign="top" class="text">Create a copy of <span class="codeInline">Chart.html</span> 
      and save it as <span class="codeInline">ChartDataXML.html</span>. Also, 
      modify the code as under:</td>
  </tr>
  <tr> 
    <td valign="top" class="codeBlock">&lt;html&gt;<br /> &lt;body bgcolor=&quot;#ffffff&quot;&gt;<br /> 
      &lt;OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&quot; width=&quot;600&quot; height=&quot;500&quot; id=&quot;Column3D&quot; &gt;<br /> 
      &nbsp;&nbsp;&nbsp;&lt;param name=&quot;movie&quot; value=&quot;../FusionCharts/FCF_Column3D.swf?chartWidth=600&amp;chartHeight=500&quot; 
      /&gt;<br /> 
      &nbsp;&nbsp;<strong>&nbsp;&lt;param name=&quot;FlashVars&quot; 
      value=&quot;&amp;dataXML=&lt;graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showNames='1' decimalPrecision='0' formatNumberScale='0'&gt;&lt;set name='Jan' value='462' color='AFD8F8' /&gt;&lt;set name='Feb' value='857' color='F6BD0F' /&gt;&lt;set name='Mar' value='671' color='8BBA00' /&gt;&lt;set name='Apr' value='494' color='FF8E46'/&gt;&lt;set name='May' value='761' color='008E8E'/&gt;&lt;set name='Jun' value='960' color='D64646'/&gt;&lt;set name='Jul' value='629' color='8E468E'/&gt;&lt;set name='Aug' value='622' color='588526'/&gt;&lt;set name='Sep' value='376' color='B3AA00'/&gt;&lt;set name='Oct' value='494' color='008ED6'/&gt;&lt;set name='Nov' value='761' color='9D080D'/&gt;&lt;set name='Dec' value='960' color='A186BE'/&gt;&lt;/graph&gt;&quot;&gt;</strong><br /> 
      &nbsp;&nbsp;&nbsp;&lt;param 
      name=&quot;quality&quot; value=&quot;high&quot; /&gt;<br /> 
      &nbsp;&nbsp;&nbsp;&lt;embed 
      src=&quot;../FusionCharts/FCF_Column3D.swf?chartWidth=600&amp;chartHeight=500&quot; <strong>flashVars=&quot;&amp;dataXML=&lt;graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showNames='1' decimalPrecision='0' formatNumberScale='0'&gt;&lt;set name='Jan' value='462' color='AFD8F8' /&gt;&lt;set name='Feb' value='857' color='F6BD0F' /&gt;&lt;set name='Mar' value='671' color='8BBA00' /&gt;&lt;set name='Apr' value='494' color='FF8E46'/&gt;&lt;set name='May' value='761' color='008E8E'/&gt;&lt;set name='Jun' value='960' color='D64646'/&gt;&lt;set name='Jul' value='629' color='8E468E'/&gt;&lt;set name='Aug' value='622' color='588526'/&gt;&lt;set name='Sep' value='376' color='B3AA00'/&gt;&lt;set name='Oct' value='494' color='008ED6'/&gt;&lt;set name='Nov' value='761' color='9D080D'/&gt;&lt;set name='Dec' value='960' color='A186BE'/&gt;&lt;/graph&gt;&quot;</strong> 
      quality=&quot;high&quot; width=&quot;600&quot; height=&quot;500&quot; name=&quot;Column3D&quot; 
      type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; 
      /&gt;<br /> 
      &lt;/object&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;</td>
  </tr>
  <tr> 
    <td valign="top" class="text"><p>As you can see above, we have provided the 
        complete data by appending it as a <span class="codeInline">FlashVars</span> 
        attribute in the following format:<br />
        <span class="codeInline">&lt;PARAM NAME=&quot;FlashVars&quot; Value=&quot;&amp;dataXML=completeXMLData&quot;&gt;</span><br />
后面还有 63 行代码,购买后查看完整代码

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

AI 解读 AI

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

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