Added Stroke configuration

This commit is contained in:
Andrés Santibáñez
2020-10-25 00:18:20 -05:00
parent 472dfd8a4a
commit 8126b95593
5 changed files with 64 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ namespace Asantibanez\LivewireCharts\Models;
class BaseChartModel
{
use HasAxisConfiguration;
use HasStrokeConfiguration;
public function __construct()
{
@@ -26,11 +27,13 @@ class BaseChartModel
return [
'xAxis' => $this->xAxis,
'yAxis' => $this->yAxis,
'stroke' => $this->stroke,
];
}
public function fromArray($array)
{
$this->setupAxis($array);
$this->setupStroke($array);
}
}