You are here

public function GoogleOptions::setColors in Charts 8.3

Same name and namespace in other branches
  1. 8 modules/charts_google/src/Settings/Google/GoogleOptions.php \Drupal\charts_google\Settings\Google\GoogleOptions::setColors()

Set Colors.

Sets the colors to use for the chart elements. An array of strings, where each element is an HTML color string.

Parameters

array $colors: Colors.

File

modules/charts_google/src/Settings/Google/GoogleOptions.php, line 399

Class

GoogleOptions
Class GoogleOptions.

Namespace

Drupal\charts_google\Settings\Google

Code

public function setColors(array $colors = []) {
  $this->colors = $colors;
}