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


PHP graph::addChartData方法代碼示例

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


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

示例1: graph

            //  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++;
            $link = "repstaffperfomance.php?start={$st}&end={$end}&startdate={$var_sdate}&enddate={$var_edate}";
開發者ID:ACSAUruguay,項目名稱:helpdesk,代碼行數:31,代碼來源:repticketstaffperformancedetail.php

示例2: 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 
        }
    }
開發者ID:ACSAUruguay,項目名稱:helpdesk,代碼行數:31,代碼來源:repticketstaffperformancedetail_1.php

示例3: 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'));
$y = date('Y', strtotime('-365days'));
開發者ID:ACSAUruguay,項目名稱:helpdesk,代碼行數:31,代碼來源:adminmain.php


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