本文整理汇总了PHP中graph::setChartParams方法的典型用法代码示例。如果您正苦于以下问题:PHP graph::setChartParams方法的具体用法?PHP graph::setChartParams怎么用?PHP graph::setChartParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类graph
的用法示例。
在下文中一共展示了graph::setChartParams方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
}
?>
</td>
</tr>
<tr>
<td colspan="2">
<?php
$count = 0;
foreach ($dataArray as $key => $value) {
$arrData[$count][0] = $key;
$arrData[$count][1] = $value;
$count++;
}
//print_r($arrData);
$graphObj3 = new graph(8);
$graphObj3->setChartParams("Ticket Statistics", 1, 1, 0);
$graphObj3->addChartData($arrData);
$graphObj3->renderChart();
?>
</td>
</tr>
<?php
} else {
?>
<tr><td colspan="2" align="center"><?php
echo TEXT_NO_RECORDS;
?>
</td></tr>
<?php
}
示例2: floor
$avgSatffTime = floor($avgSatffTime);
// echo '<br>stf : '.$staffid. 'avg '. $avgSatffTime;
}
//if ends
$arrDataAuto[$count][0] = $stf_value;
$arrDataAuto[$count][1] = $avgSatffTime;
$count++;
}
?>
<tr>
<td colspan="2">
<?php
$staffperfomance_auto = TEXT_REPORTS_STAFF_SUMMARY_AUTO;
$graphObj3 = new graph(8, 900, 350);
$graphObj3->setChartParams($staffperfomance_auto, 1, 1, 0);
$graphObj3->addChartData($arrDataAuto);
$graphObj3->renderChart();
?>
</td>
</tr>
<tr><td colspan="2" align="center">
<div class="pagination_links">
<?php
$st = 0;
$end = $limitst;
$pageCount = 0;
$totalStaff = getStaffCount();
if ($totalStaff > 0) {
do {
$pageCount++;
示例3: foreach
}
?>
<tr class="listingmaintext">
<td colspan="2" align="center" style="padding:2;">
<?php
$count = 0;
$subDeptval = 0;
foreach ($dataArray as $key => $value) {
$arrData[$count][0] = $key;
$arrData[$count][1] = $value;
$ticketTotal = $ticketTotal + $value;
$subDeptval = ${$subDeptval} + $value;
$count++;
}
$graphObj3 = new graph(8);
$graphObj3->setChartParams(TEXT_TCKET_STATISTICS, 1, 1, 0);
$graphObj3->addChartData($arrData);
$graphObj3->renderChart();
?>
</td></tr>
<tr class="listingmaintext"><td colspan=2><?php
echo 'Total number of tickets under -' . '<b>' . $rowCDept['vDeptDesc'] . '</b>';
?>
: <b><span><?php
echo $subDeptval;
?>
</span></b></td></tr>
<?php
} else {
?>
<tr class="listingmaintext"><td colspan="2" align="center"><?php
示例4: date
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language='javascript' src='JSClass/FusionCharts.js'></script>
<title>Untitled Document</title>
</head>
<?php
# Include FusionCharts PHP Class
if (include 'Class/FusionCharts.php') {
if (include 'graph/graph.php') {
//echo "class included";
for ($i = 1; $i <= 12; $i++) {
$arrData[$i - 1][0] = date("M", mktime(0, 0, 0, $i, 10));
$arrData[$i - 1][1] = rand(1, 100);
}
}
}
$graphObj3 = new graph(8);
$graphObj3->setChartParams("Upgradation Statistics");
$graphObj3->addChartData($arrData);
$graphObj3->renderChart();
?>
<body>
</body>
</html>
示例5: graph
}
?>
</div>
</div>
<!-- <div class="DB_container_contentbox1"><h2>Closed Incidents by Month</h2>
<div class="DB_container_content"></div>
</div> -->
<div class="DB_container_contentbox5"><h2><?php
echo STAFF_RATING_CUSTOMER;
?>
</h2>
<div class="DB_container_content">
<?php
$graphObj3 = new graph(8, 400, 200);
$graphObj3->setChartParams('', '', '', 0);
$graphObj3->addChartData($arrData_rating);
$graphObj3->renderChart();
?>
</div>
</div>
</div>
<div class="DB_container_2" >
<h2><?php
echo TRENDING_INFO;
?>
</h2>
<div class="DB_container_content">
<?php
$m = date('m', strtotime('-365days'));