. **/ class CSvgGraphArea extends CSvgGraphLine { public const ZBX_STYLE_CLASS = 'svg-graph-area'; public function __construct(array $path, array $metric) { $this->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(); } } }