C3Overrides.php in Charts 8.3
Namespace
Drupal\charts_c3\Plugin\overrideFile
modules/charts_c3/src/Plugin/override/C3Overrides.phpView source
<?php
namespace Drupal\charts_c3\Plugin\override;
use Drupal\charts\Plugin\override\AbstractChartOverride;
/**
* Defines a concrete class for a C3 Charts.
*
* @ChartOverride(
* id = "c3_overrides",
* name = @Translation("C3 Charts Overrides")
* )
*/
class C3Overrides extends AbstractChartOverride {
public function chartOverrides(array $originalOptions = []) {
$options = [];
// // An example of how to override the color property.
// $options['color'] = [
// 'pattern' => [
// '#000000',
// '#999999',
// '#666666'
// ]
// ];
return $options;
}
}
Classes
Name | Description |
---|---|
C3Overrides | Defines a concrete class for a C3 Charts. |