diff --git a/src/Models/HasStroke.php b/src/Models/HasStroke.php index 54cb923..f8f12b7 100644 --- a/src/Models/HasStroke.php +++ b/src/Models/HasStroke.php @@ -7,6 +7,7 @@ namespace Asantibanez\LivewireCharts\Models; trait HasStroke { private $stroke; + private $width; public function initStroke() { @@ -17,6 +18,7 @@ trait HasStroke { return [ 'curve' => 'straight', + 'width' => 4 ]; } @@ -34,6 +36,13 @@ trait HasStroke return $this; } + public function setStrokeWidth($width) + { + data_set($this->stroke, 'width', $width); + + return $this; + } + protected function strokeToArray() { return [