diff --git a/src/Data/ChartExtras.php b/src/Data/ChartExtras.php index 54ee84c..e11cd31 100644 --- a/src/Data/ChartExtras.php +++ b/src/Data/ChartExtras.php @@ -39,6 +39,16 @@ class ChartExtras implements Arrayable, Jsonable */ public array $quadrants = []; + /** + * @param array $labels + */ + public function labels(array $labels = []): self + { + $this->labels = $labels; + + return $this; + } + public function addLabel(ChartLabel $label): self { $this->labels[] = $label; @@ -46,6 +56,16 @@ public function addLabel(ChartLabel $label): self return $this; } + /** + * @param array $lines + */ + public function lines(array $lines = []): self + { + $this->lines = $lines; + + return $this; + } + public function addLine(ChartLine $line): self { $this->lines[] = $line; @@ -53,6 +73,16 @@ public function addLine(ChartLine $line): self return $this; } + /** + * @param array $quadrants + */ + public function quadrants(array $quadrants = []): self + { + $this->quadrants = $quadrants; + + return $this; + } + public function addQuadrant(ChartQuadrant $quadrant): self { $this->quadrants[] = $quadrant;