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


PHP graph::setChartParams方法代碼示例

本文整理匯總了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 
        }
開發者ID:ACSAUruguay,項目名稱:helpdesk,代碼行數:31,代碼來源:repticketstaffperformancedetail_1.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++;
開發者ID:ACSAUruguay,項目名稱:helpdesk,代碼行數:31,代碼來源:repticketstaffperformancedetail.php

示例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>';
                    ?>
&nbsp;:&nbsp;<b><span><?php 
                    echo $subDeptval;
                    ?>
</span></b></td></tr>
                        <?php 
                } else {
                    ?>
    <tr class="listingmaintext"><td colspan="2" align="center"><?php 
開發者ID:kevinsmasters,項目名稱:purecatskillsmarketplace,代碼行數:31,代碼來源:repticket_departments.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>
開發者ID:ACSAUruguay,項目名稱:helpdesk,代碼行數:30,代碼來源:fusion.php

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


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