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

Revision 10991, 951 bytes checked in by naka, 20 years ago (diff)
Line 
1<?php
2
3require_once("../../require.php");
4
5require_once("./class/SC_GraphPie.php");
6require_once("./class/SC_GraphLine.php");
7require_once("./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        // ¥Ç¡¼¥¿¤ò¥»¥Ã¥È¤¹¤ë
18        $objGraphPie->setData($arrList);
19        // ËÞÎã¤ò¥»¥Ã¥È¤¹¤ë
20        $objGraphPie->setLegend(array_keys($arrList));
21                               
22        // ¥á¥¤¥ó¥¿¥¤¥È¥ëºîÀ®
23        list($sy, $sm, $sd) = split("[/ ]" , $sdate);
24        list($ey, $em, $ed) = split("[/ ]" , $edate);
25        $start_date = $sy . "ǯ" . $sm . "·î" . $sd . "Æü";
26        $end_date = $ey . "ǯ" . $em . "·î" . $ed . "Æü";
27        $objGraphPie->drawTitle("½¸·×´ü´Ö¡§" . $start_date . " - " . $end_date);
28               
29        // ±ß¥°¥é¥ÕÉÁ²è
30        $objGraphPie->drawGraph();
31       
32        // ¥°¥é¥Õ¤Î½ÐÎÏ
33        if(DRAW_IMAGE){
34            $objGraphPie->outputGraph();
35            exit();
36        }
37?>
Note: See TracBrowser for help on using the repository browser.