Exemplo n.º 1
0
 function SC_GraphPie($bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = PIE_LEFT, $top = PIE_TOP)
 {
     parent::SC_GraphBase($bgw, $bgh, $left, $top);
     // サイズ設定
     $this->setSize(PIE_WIDTH, PIE_HEIGHT, PIE_THICK);
     // 位置設定
     $this->setPosition($this->left + $this->cw / 2, $this->top + $this->ch / 2);
 }
Exemplo n.º 2
0
 function SC_GraphLine($bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = LINE_LEFT, $top = LINE_TOP, $area_width = LINE_AREA_WIDTH, $area_height = LINE_AREA_HEIGHT)
 {
     parent::SC_GraphBase($bgw, $bgh, $left, $top);
     $this->area_width = $area_width;
     $this->area_height = $area_height;
     $this->ygrid_on = true;
     $this->line_max = 0;
     $this->graph_max = 0;
     $this->XLabelAngle = 0;
     $this->x_margin = 0;
     $this->y_margin = 0;
 }