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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值