本文整理汇总了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'>« Back to list of examples</a></h5>
</CENTER>
</BODY>
</HTML>