You are here

public function C3Overrides::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 C3Overrides::chartOverrides()
ChartsOverridesC3::chartOverrides in starterkits/charts_overrides/src/Plugin/override/ChartsOverridesC3.php
Builds an array of Chart Settings with key value pairs

File

modules/charts_c3/src/Plugin/override/C3Overrides.php, line 17

Class

C3Overrides
Defines a concrete class for a C3 Charts.

Namespace

Drupal\charts_c3\Plugin\override

Code

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

  //    // An example of how to override the color property.
  //    $options['color'] = [
  //      'pattern' => [
  //        '#000000',
  //        '#999999',
  //        '#666666'
  //      ]
  //    ];
  return $options;
}