Skip to content

Commit

Permalink
Merge pull request #73 from jeffreyvanhees/master
Browse files Browse the repository at this point in the history
Add support for stoke curve type
  • Loading branch information
ArielMejiaDev authored Jan 24, 2024
2 parents b50f1e8 + 598e564 commit f2afe8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LarapexChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -238,6 +238,7 @@ public function setStroke(int $width, array $colors = []) :LarapexChart
'show' => true,
'width' => $width,
'colors' => $colors,
'curve' => $curve,
]);
return $this;
}
Expand Down

0 comments on commit f2afe8d

Please sign in to comment.