Skip to content

Commit

Permalink
Revert "Make colors generator public to allow for customized colors f…
Browse files Browse the repository at this point in the history
…or each chart (#26)"

This reverts commit dac0754.
  • Loading branch information
mvorisek authored Dec 21, 2022
1 parent dac0754 commit 03dd12c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Chart extends View
protected $datasets;

/** @var ColorGenerator */
public $colorGenerator;
protected $colorGenerator;

protected function init(): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/ColorGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ColorGenerator
*
* @var array<int, array<int, string>>
*/
public $colors = [
protected $colors = [
['rgba(255, 99, 132, 0.2)', 'rgba(255, 99, 132, 1)'],
['rgba(54, 162, 235, 0.2)', 'rgba(54, 162, 235, 1)'],
['rgba(255, 206, 86, 0.2)', 'rgba(255, 206, 86, 1)'],
Expand Down

0 comments on commit 03dd12c

Please sign in to comment.