public function ChartsOverridesBillboard::chartOverrides in Charts 8.3
Parameters
array $originalOptions: The original options.
Return value
array $options The overridden options.
Overrides BillboardOverrides::chartOverrides
File
- starterkits/
charts_overrides/ src/ Plugin/ override/ ChartsOverridesBillboard.php, line 17
Class
- ChartsOverridesBillboard
- Defines a concrete class for a Billboard.
Namespace
Drupal\charts_overrides\Plugin\overrideCode
public function chartOverrides(array $originalOptions = []) {
$options = [];
// The following are currently available for overriding; they are the
// private variables in
// charts_billboard/src/Settings/Billboard/BillboardChart.php
//
// $options['color'];
// $options['bindto'];
// $options['data'];
// $options['axis'];
// $options['title'];
// $options['gauge'];
// $options['point'];
//
// An example of how to override the color property.
// $options['color'] = [
// 'pattern' => [
// '#000000',
// '#999999',
// '#666666'
// ]
// ];
return $options;
}