source: temp/branches/ec-cube-beta/html/test/naka/graph.php @ 10994

Revision 10994, 1.1 KB checked in by naka, 20 years ago (diff)
Line 
1<?php
2
3require_once("../../require.php");
4
5require_once(HTML_PATH . "admin/total/class/SC_GraphPie.php");
6require_once(HTML_PATH . "admin/total/class/SC_GraphLine.php");
7require_once(HTML_PATH . "admin/total/class/SC_GraphBar.php");
8
9        $objGraphPie = new SC_GraphPie();
10       
11        /* ¥Ç¥Ð¥Ã¥°É½¼¨ÍÑ by naka
12        foreach($arrList as $key => $val) {
13            $objGraphPie->debugPrint("key:$key val:$val");
14        }
15        */
16       
17        $arrList = array(
18            'A' => 1,
19            'B' => 2,
20            'C' => 3           
21        );
22       
23        // ¥Ç¡¼¥¿¤ò¥»¥Ã¥È¤¹¤ë
24        $objGraphPie->setData($arrList);
25        // ËÞÎã¤ò¥»¥Ã¥È¤¹¤ë
26        $objGraphPie->setLegend(array_keys($arrList));
27                               
28        // ¥á¥¤¥ó¥¿¥¤¥È¥ëºîÀ®
29        list($sy, $sm, $sd) = split("[/ ]" , $sdate);
30        list($ey, $em, $ed) = split("[/ ]" , $edate);
31        $start_date = $sy . "ǯ" . $sm . "·î" . $sd . "Æü";
32        $end_date = $ey . "ǯ" . $em . "·î" . $ed . "Æü";
33        $objGraphPie->drawTitle("½¸·×´ü´Ö¡§" . $start_date . " - " . $end_date);
34               
35        // ±ß¥°¥é¥ÕÉÁ²è
36        $objGraphPie->drawGraph();
37       
38        // ¥°¥é¥Õ¤Î½ÐÎÏ
39        if(DRAW_IMAGE){
40            $objGraphPie->outputGraph();
41            exit();
42        }
43?>
Note: See TracBrowser for help on using the repository browser.