FusionCharts的php樣本

來源:互聯網
上載者:User

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.