src/Service/chartService.php
private function _drawLegend(&$g, $pos, $layout, $font, $color, $fcolor)
    {
        $this->_drawString($g,$font,$color);
        if ($fcolor) $g->SetFillColor($fcolor);
        if ($pos)
        {
            list($x,$y,$hap,$vap) = explode(",",$pos);
            $g->SetPos($x,$y,$hap,$vap);
        }
        if ($layout && $layout == 'HOR')
        {
            $g->SetLayout(LEGEND_HOR);
        }
    }
private function _drawLegend(&$g, $pos, $layout, $font, $color, $fcolor)
    {
        $this->_drawString($g,$font,$color);
        if ($fcolor) $g->SetFillColor($fcolor);
        if ($pos)
        {
            list($x,$y,$hap,$vap) = explode(",",$pos);
            $g->SetPos($x,$y,$hap,$vap);
        }
        if ($layout && $layout == 'HOR')
        {
            $g->SetLayout(LEGEND_HOR);
        }
    }
Draw legend

@param object $g plot object reference
@access private
@return void