public function ChartjsOverrides::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 ChartjsOverrides::chartOverrides()
- ChartsOverridesChartjs::chartOverrides in starterkits/
charts_overrides/ src/ Plugin/ override/ ChartsOverridesChartjs.php - Builds an array of Chart Settings with key value pairs
File
- modules/
charts_chartjs/ src/ Plugin/ override/ ChartjsOverrides.php, line 17
Class
- ChartjsOverrides
- Defines a concrete class for a Chart.js Charts.
Namespace
Drupal\charts_chartjs\Plugin\overrideCode
public function chartOverrides(array $originalOptions = []) {
$options = [];
// // An example of how to override ....
return $options;
}