Skip to content

Commit 353a54c

Browse files
committed
adds colorsConfig setter
1 parent 174d361 commit 353a54c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Factories/Chart.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ public function datalabels(array $config): self
6464
return $this;
6565
}
6666

67+
public function colorsConfig(array $colors): self
68+
{
69+
$this->colors = $colors;
70+
71+
return $this;
72+
}
73+
6774
public function datasetConfig(string $dataset, array $config): self
6875
{
6976
$this->datasetConfig[$dataset] = $config;

0 commit comments

Comments
 (0)