From 96ab6a7e2d766423317184a6d784e158ea063520 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 17 Oct 2017 16:01:19 +0200 Subject: [PATCH] Display grid refs #60 --- library/Graphite/Graphing/Chart.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/library/Graphite/Graphing/Chart.php b/library/Graphite/Graphing/Chart.php index 7a53298..8d8a7d9 100644 --- a/library/Graphite/Graphing/Chart.php +++ b/library/Graphite/Graphing/Chart.php @@ -97,19 +97,20 @@ class Chart public function serveImage(Response $response) { $params = (new UrlParams())->addValues([ - 'from' => $this->from, - 'width' => $this->width, - 'height' => $this->height, - 'hideLegend' => (string) ! $this->showLegend, - 'tz' => $this->timeZone->getName(), - '_salt' => time() . '.000', - 'hideGrid' => 'true', - 'vTitle' => 'Percent', - 'lineMode' => 'connected', - 'xFormat' => '%a %H:%M', - 'drawNullAsZero' => 'false', - 'graphType' => 'line', - '_ext' => 'whatever.svg' + 'from' => $this->from, + 'width' => $this->width, + 'height' => $this->height, + 'hideLegend' => (string) ! $this->showLegend, + 'tz' => $this->timeZone->getName(), + '_salt' => time() . '.000', + 'vTitle' => 'Percent', + 'lineMode' => 'connected', + 'xFormat' => '%a %H:%M', + 'drawNullAsZero' => 'false', + 'graphType' => 'line', + 'majorGridLineColor' => '#0000003F', + 'minorGridLineColor' => '#00000000', + '_ext' => 'whatever.svg' ]); if ($this->until !== null) {