コード例 #1
0
ファイル: SVGGraphRadarGraph.php プロジェクト: gotcms/gotcms
 /**
  * Calculate the extra details for radar axes
  */
 protected function CalcAxes($h_by_count = false, $bar = false)
 {
     parent::CalcAxes($h_by_count, $bar);
     $w = $this->width - $this->pad_left - $this->pad_right;
     $h = $this->height - $this->pad_top - $this->pad_bottom;
     $this->xc = $this->pad_left + $w / 2;
     $this->yc = $this->pad_top + $h / 2;
     $this->radius = min($w, $h) / 2;
 }