From 41cf6791a1e68a42add3b425f9088462bab4ea54 Mon Sep 17 00:00:00 2001 From: Mykel Scappin Date: Mon, 22 Jul 2019 16:57:22 +1000 Subject: [PATCH 1/2] correcting parameter error --- src/Draw.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Draw.php b/src/Draw.php index bf1487c..70ce369 100644 --- a/src/Draw.php +++ b/src/Draw.php @@ -7489,9 +7489,9 @@ public function drawBarChart(array $Format = []) floor($X + $XOffset + $XSpace), floor($Y1), floor($X + $XOffset + $XSize - $XSpace), - floor($Y2), - $this->toHTMLColor($R, $G, $B) + floor($Y2) ), + $this->toHTMLColor($R, $G, $B), $SerieDescription, $this->scaleFormat($Serie["Data"][$Key], $Mode, $Format, $Unit) ); From ea60e0d1fc37dc918c19f45081e188d68fe09311 Mon Sep 17 00:00:00 2001 From: Mykel Scappin Date: Mon, 22 Jul 2019 17:20:13 +1000 Subject: [PATCH 2/2] correcting sprintf arguments --- src/Draw.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Draw.php b/src/Draw.php index 70ce369..7e00a37 100644 --- a/src/Draw.php +++ b/src/Draw.php @@ -7485,7 +7485,7 @@ public function drawBarChart(array $Format = []) $this->addToImageMap( "RECT", sprintf( - "%s,%s,%s,%s,%s", + "%s,%s,%s,%s", floor($X + $XOffset + $XSpace), floor($Y1), floor($X + $XOffset + $XSize - $XSpace),