當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FusionCharts::renderChartFromExtXML方法代碼示例

本文整理匯總了PHP中FusionCharts::renderChartFromExtXML方法的典型用法代碼示例。如果您正苦於以下問題:PHP FusionCharts::renderChartFromExtXML方法的具體用法?PHP FusionCharts::renderChartFromExtXML怎麽用?PHP FusionCharts::renderChartFromExtXML使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在FusionCharts的用法示例。


在下文中一共展示了FusionCharts::renderChartFromExtXML方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: FusionCharts

//forms or databases etc.Such examples are also present.
//Here, we've kept this example very simple.
//Create an XML data document in a string variable
$strXML = "<Chart caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' >";
$strXML .= "<set Label='Jan' value='462' />";
$strXML .= "<set Label='Feb' value='857' />";
$strXML .= "<set Label='Mar' value='671' />";
$strXML .= "<set Label='Apr' value='494' />";
$strXML .= "<set Label='May' value='761' />";
$strXML .= "<set Label='Jun' value='960' />";
$strXML .= "<set Label='Jul' value='629' />";
$strXML .= "<set Label='Aug' value='622' />";
$strXML .= "<set Label='Sep' value='376' />";
$strXML .= "<set Label='Oct' value='494' />";
$strXML .= "<set Label='Nov' value='761' />";
$strXML .= "<set Label='Dec' value='960' />";
$strXML .= "</Chart>";
# Create object of FusionCharts class of single series
$FC = new FusionCharts("Column3D", "600", "300");
# Set Relative Path of swf file. default path is “charts/”
$FC->setSWFPath("../../FusionCharts/");
//Create the chart - Column 3D Chart with data from strXML
# Create the Chart
$FC->renderChartFromExtXML($strXML);
?>
<BR><BR>
<a href='../NoChart.html' target="_blank">Unable to see the chart above?</a>
<H5 ><a href='../default.htm'>&laquo; Back to list of examples</a></h5>
</CENTER>
</BODY>
</HTML>
開發者ID:pawelniewie,項目名稱:5groszy.pl,代碼行數:31,代碼來源:CreateChartFromExtData.php


注:本文中的FusionCharts::renderChartFromExtXML方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。