FusionCharts的php示例

1、示例1

<?php

$strXML = "";

$strXML .= "<graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units'

decimalPrecision='0' formatNumberScale='0'>";

$strXML .= "<set name='Jan' value='462' color='AFD8F8' />";

$strXML .= "<set name='Feb' value='857' color='F6BD0F' />";

$strXML .= "</graph>";

echo renderChartHTML("../../FusionCharts/FCF_Column3D.swf", "", $strXML, "myNext", 600, 300);

?>

http://docs.fusioncharts.com/charts/contents/guide-for-web-developers/php/PHP_BasicExample.html

http://hi.baidu.com/miracletan2008/item/ecf1778aacd242d05e0ec1a9

http://blog.sina.com.cn/s/blog_813e149b01017rwp.html

http://blog.csdn.net/daguigto/article/details/4490902

2、示例2

//Initialize <chart> element

$strXML = "<chart caption='Tickets by Issue Types' formatNumberScale='0'>";

foreach ($issuetype as $issue){

$strXML .= "<set label='" . $issue[2] . "' value='" . $issue[3] . "' />";

}

//Close <chart> element

$strXML .= "</chart>";

//Create the chart - Column 2D Chart with data contained in strXML

echo renderChart("FusionCharts/Charts/FCF_Column2D.swf", "issueTypes", $strXML, "", 600, 300, false, true);

http://stackoverflow.com/questions/3724832/php-creating-an-xml-string-for-fusioncharts-help

3、更多讲解

http://wenku.baidu.com/view/820e213e376baf1ffc4fadcc.html

http://wenku.baidu.com/view/8a52dff6f61fb7360b4c659d.html

你可能感兴趣的:(FusionCharts)