You are here

public function HighchartsOverrides::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 HighchartsOverrides::chartOverrides()
ChartsOverridesHighcharts::chartOverrides in starterkits/charts_overrides/src/Plugin/override/ChartsOverridesHighcharts.php
Builds an array of Chart Settings with key value pairs

File

modules/charts_highcharts/src/Plugin/override/HighchartsOverrides.php, line 17

Class

HighchartsOverrides
Defines a concrete class for a Highcharts.

Namespace

Drupal\charts_highcharts\Plugin\override

Code

public function chartOverrides(array $originalOptions = []) {
  $options = [];

  //    // An example of how to override plotOptions property.
  //    $options['plotOptions'] = [
  //        'series' => [
  //            'dataLabels' => [
  //                'enabled' => true,
  //                'color' => 'red'
  //            ],
  //        ],
  //    ];
  return $options;
}