From 5034771e5752f62027310cecd21efd0b4d05cf62 Mon Sep 17 00:00:00 2001 From: asantibanez Date: Tue, 25 Jul 2023 16:51:45 -0500 Subject: [PATCH] Added helper methods --- src/Models/ColumnChartModel.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Models/ColumnChartModel.php b/src/Models/ColumnChartModel.php index f7206b4..832e62d 100644 --- a/src/Models/ColumnChartModel.php +++ b/src/Models/ColumnChartModel.php @@ -65,9 +65,16 @@ class ColumnChartModel extends BaseChartModel return $this; } - public function setHorizontal($value) + public function setHorizontal() { - $this->horizontal = $value; + $this->horizontal = true; + + return $this; + } + + public function setVertical() + { + $this->horizontal = false; return $this; }