Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
230b706c63 | ||
|
|
8b0bb9c250 | ||
|
|
c61ca90905 |
File diff suppressed because one or more lines are too long
@@ -53,9 +53,7 @@ const areaChart = () => {
|
||||
|
||||
colors: [component.get('areaChartModel.color') || '#2E93fA'],
|
||||
|
||||
stroke: {
|
||||
curve: 'straight'
|
||||
},
|
||||
stroke: component.get('areaChartModel.stroke') || {},
|
||||
|
||||
title: {
|
||||
text: title,
|
||||
|
||||
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user