本文整理汇总了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();
?>