public function BillboardOverrides::chartOverrides in Charts 8.3
Parameters
array $originalOptions: The original options.
Return value
array $options The overridden options.
Overrides ChartOverrideInterface::chartOverrides
1 method overrides BillboardOverrides::chartOverrides()
- ChartsOverridesBillboard::chartOverrides in starterkits/
charts_overrides/ src/ Plugin/ override/ ChartsOverridesBillboard.php - Builds an array of Chart Settings with key value pairs
File
- modules/
charts_billboard/ src/ Plugin/ override/ BillboardOverrides.php, line 24
Class
- BillboardOverrides
- Defines a concrete class for a Billboard.js Charts.
Namespace
Drupal\charts_billboard\Plugin\overrideCode
public function chartOverrides(array $originalOptions = []) {
$options = [];
/**
* // An example of how to override the color property.
* $options['color'] = [
* 'pattern' => [
* '#000000',
* '#999999',
* '#666666'
* ]
* ];
*/
return $options;
}