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'],
|
colors: [component.get('areaChartModel.color') || '#2E93fA'],
|
||||||
|
|
||||||
stroke: {
|
stroke: component.get('areaChartModel.stroke') || {},
|
||||||
curve: 'straight'
|
|
||||||
},
|
|
||||||
|
|
||||||
title: {
|
title: {
|
||||||
text: title,
|
text: title,
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ namespace Asantibanez\LivewireCharts\Models;
|
|||||||
trait HasStroke
|
trait HasStroke
|
||||||
{
|
{
|
||||||
private $stroke;
|
private $stroke;
|
||||||
|
private $width;
|
||||||
|
|
||||||
public function initStroke()
|
public function initStroke()
|
||||||
{
|
{
|
||||||
@@ -17,6 +18,7 @@ trait HasStroke
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'curve' => 'straight',
|
'curve' => 'straight',
|
||||||
|
'width' => 4
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,6 +36,13 @@ trait HasStroke
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setStrokeWidth($width)
|
||||||
|
{
|
||||||
|
data_set($this->stroke, 'width', $width);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
protected function strokeToArray()
|
protected function strokeToArray()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user