You are here

public function GoogleOverrides::chartOverrides in Charts 8.3

Builds an array of Chart Settings with key value pairs

Parameters

$settings array:

Return value

array

Overrides ChartOverrideInterface::chartOverrides

1 method overrides GoogleOverrides::chartOverrides()
ChartsOverridesGoogle::chartOverrides in starterkits/charts_overrides/src/Plugin/override/ChartsOverridesGoogle.php
Builds an array of Chart Settings with key value pairs

File

modules/charts_google/src/Plugin/override/GoogleOverrides.php, line 17

Class

GoogleOverrides
Defines a concrete class for a Google Charts.

Namespace

Drupal\charts_google\Plugin\override

Code

public function chartOverrides(array $originalOptions = []) {
  $options = [];

  //    // An example of how to override ....
  //    $options['colors'] = [
  //        '#000000',
  //        '#999999',
  //        '#666666'
  //    ];
  return $options;
}