path = $path; parent::__construct($path, $metric, false); $this->options = $metric['options'] + [ 'fill' => CSvgGraph::SVG_GRAPH_DEFAULT_TRANSPARENCY ]; } protected function draw(): void { $this->addClass(self::ZBX_STYLE_CLASS); parent::draw(); if (count($this->path) > 1) { $this->closePath(); } } }