From b04fc0416f826c4979c67328f74ec360235f8876 Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Sat, 2 Jul 2016 01:39:52 -0400 Subject: [PATCH] improved sparklines --- src/NeatCharts/LineChart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NeatCharts/LineChart.php b/src/NeatCharts/LineChart.php index 1c62f44..ec474a1 100644 --- a/src/NeatCharts/LineChart.php +++ b/src/NeatCharts/LineChart.php @@ -84,7 +84,7 @@ namespace NeatCharts { $this->height = floor($aspectRatio * $this->width); $this->options['height'] = $this->height + $this->padding['top'] + $this->padding['bottom']; } - + $this->padding['left'] = $this->padding['right'] = $this->options['fontSize'] / 2; if ($this->options['yAxisEnabled']) { $numLabels = 2 + ceil($this->height / $this->options['fontSize'] / 6); $labelInterval = $this->yRange / $numLabels;