本文整理匯總了PHP中FusionCharts::setOffChartCaching方法的典型用法代碼示例。如果您正苦於以下問題:PHP FusionCharts::setOffChartCaching方法的具體用法?PHP FusionCharts::setOffChartCaching怎麽用?PHP FusionCharts::setOffChartCaching使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FusionCharts
的用法示例。
在下文中一共展示了FusionCharts::setOffChartCaching方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: FusionCharts
#---------- Configuring Second Chart ----------
# Create another Column3D chart object
$FC2 = new FusionCharts("Column3D", "300", "250");
# set the relative path of the swf file
$FC2->setSWFPath("../FusionCharts/");
# Store chart attributes in a variable
$strParam = "caption=Weekly Sales;subcaption=Quantity;xAxisName=Week;yAxisName=Quantity;numberSuffix= U";
# Set chart attributes
$FC2->setChartParams($strParam);
# Add chart values and category names for the second chart
$FC2->addChartData("32", "Label=Week 1");
$FC2->addChartData("35", "Label=Week 2");
$FC2->addChartData("26", "Label=Week 3");
$FC2->addChartData("44", "Label=Week 4");
# Set Chart Caching Off for to Fix Caching error in FireFox
$FC2->setOffChartCaching(true);
//--------------------------------------------------------
?>
<html>
<head>
<title>Multiple Charts Using FusionCharts PHP Class</title>
<script language='javascript' src='../FusionCharts/FusionCharts.js'></script>
</head>
<body>
<?php
# Render First Chart
$FC->renderChart();
# Render Second Chart
$FC2->renderChart();
?>