Ignore:
Timestamp:
2007/03/11 06:27:25 (19 years ago)
Author:
nanasess
Message:

r11729 の変更を取消

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu/html/admin/total/class/SC_GraphBar.php

    r11729 r11730  
    88require_once($SC_GRAPHBAR_DIR . "/SC_GraphLine.php");    
    99 
    10 // 棒グラフ生成クラス 
     10// ËÀ¥°¥é¥ÕÀ¸À®¥¯¥é¥¹ 
    1111class SC_GraphBar extends SC_GraphLine{ 
    12     // コンストラクタ 
     12    // ¥³¥ó¥¹¥È¥é¥¯¥¿ 
    1313    function SC_GraphLine( 
    1414        $bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = LINE_LEFT, $top = LINE_TOP, 
     
    1717    } 
    1818     
    19     // グラフの描画 
     19    // ¥°¥é¥Õ¤ÎÉÁ²è 
    2020    function drawGraph() { 
    2121        $this->drawYLine(); 
    2222        $this->drawXLine(true); 
    2323         
    24         // 棒グラフの描画 
     24        // ËÀ¥°¥é¥Õ¤ÎÉÁ²è 
    2525        for($i = 0; $i < $this->line_max; $i++) { 
    2626            $this->drawBar($i); 
    2727        } 
    2828         
    29         // ラベルの描画 
     29        // ¥é¥Ù¥ë¤ÎÉÁ²è 
    3030        for($i = 0; $i < $this->line_max; $i++) { 
    3131            $this->drawLabel($i); 
    3232        } 
    3333         
    34         // 凡例の描画 
     34        // ËÞÎã¤ÎÉÁ²è 
    3535        $this->drawLegend();     
    3636    } 
    3737     
    38     // 棒グラフの描画 
     38    // ËÀ¥°¥é¥Õ¤ÎÉÁ²è 
    3939    function drawBar($line_no) { 
    4040        $arrPointList = $this->arrPointList[$line_no]; 
    41         // データ数を数える 
     41        // ¥Ç¡¼¥¿¿ô¤ò¿ô¤¨¤ë 
    4242        $count = count($arrPointList); 
    43         // 半目盛りの幅を求める 
     43        // ȾÌÜÀ¹¤ê¤ÎÉý¤òµá¤á¤ë 
    4444        $half_scale = intval($this->area_width / ($count + 1) / 2); 
    45         // 目盛りの幅を求める 
     45        // ÌÜÀ¹¤ê¤ÎÉý¤òµá¤á¤ë 
    4646        $scale_width = intval($this->area_width / ($count + 1)); 
    47         // 棒グラフのサイズを求める 
     47        // ËÀ¥°¥é¥Õ¤Î¥µ¥¤¥º¤òµá¤á¤ë 
    4848        $bar_width = intval(($scale_width - (BAR_PAD * 2)) / $this->line_max); 
    49         // 色数の取得 
     49        // ¿§¿ô¤Î¼èÆÀ 
    5050        $c_max = count($this->arrColor); 
    5151        for($i = 0; $i < $count; $i++) { 
     
    5555            $bottom = $this->top + $this->area_height; 
    5656             
    57             // 影の描画 
     57            // ±Æ¤ÎÉÁ²è 
    5858            if($this->shade_on) { 
    5959                imagefilledrectangle($this->image, $left + 2, $top + 2, $right + 2, $bottom, $this->shade_color); 
     
    6565    } 
    6666     
    67     // ラベルを描画する 
     67    // ¥é¥Ù¥ë¤òÉÁ²è¤¹¤ë 
    6868    function drawLabel($line_no) { 
    6969        $arrData = $this->arrDataList[$line_no]; 
Note: See TracChangeset for help on using the changeset viewer.