diff --git a/src/LarapexChart.php b/src/LarapexChart.php index f2dcb48..9e15abc 100644 --- a/src/LarapexChart.php +++ b/src/LarapexChart.php @@ -228,7 +228,7 @@ public function setMarkers($colors = [], $width = 4, $hoverSize = 7) :LarapexCha return $this; } - public function setStroke(int $width, array $colors = []) :LarapexChart + public function setStroke(int $width, array $colors = [], string $curve = 'straight') :LarapexChart { if(empty($colors)) { $colors = config('larapex-charts.colors'); @@ -238,6 +238,7 @@ public function setStroke(int $width, array $colors = []) :LarapexChart 'show' => true, 'width' => $width, 'colors' => $colors, + 'curve' => $curve, ]); return $this; }