You are here

ChartjsOverrides.php in Charts 8.3

File

modules/charts_chartjs/src/Plugin/override/ChartjsOverrides.php
View source
<?php

namespace Drupal\charts_chartjs\Plugin\override;

use Drupal\charts\Plugin\override\AbstractChartOverride;

/**
 * Defines a concrete class for a Chart.js Charts.
 *
 * @ChartOverride(
 *   id = "chartjs_overrides",
 *   name = @Translation("Chart.js Charts Overrides")
 * )
 */
class ChartjsOverrides extends AbstractChartOverride {
  public function chartOverrides(array $originalOptions = []) {
    $options = [];

    //    // An example of how to override ....
    return $options;
  }

}

Classes

Namesort descending Description
ChartjsOverrides Defines a concrete class for a Chart.js Charts.