protected function DrawLegendEntry($set, $x, $y, $w, $h) { if (!array_key_exists($set, $this->bar_styles)) { return ''; } $bar = array('x' => $x, 'y' => $y, 'width' => $w, 'height' => $h); return $this->Element('rect', $bar, $this->bar_styles[$set]); }
/** * Return box or line for legend */ protected function DrawLegendEntry($set, $x, $y, $w, $h) { if (isset($this->bar_styles[$set])) { return parent::DrawLegendEntry($set, $x, $y, $w, $h); } return $this->linegraph->DrawLegendEntry($set, $x, $y, $w, $h); }