You are here

public function Highcharts::defaultConfiguration in Charts 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/charts_highcharts/src/Plugin/chart/Library/Highcharts.php \Drupal\charts_highcharts\Plugin\chart\Library\Highcharts::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ChartBase::defaultConfiguration

File

modules/charts_highcharts/src/Plugin/chart/Library/Highcharts.php, line 26

Class

Highcharts
Defines a concrete class for a Highcharts.

Namespace

Drupal\charts_highcharts\Plugin\chart\Library

Code

public function defaultConfiguration() {
  $configurations = [
    'legend' => [
      'layout' => NULL,
      'background_color' => '',
      'border_width' => 0,
      'shadow' => FALSE,
      'item_style' => [
        'color' => '',
        'overflow' => '',
      ],
    ],
    'exporting_library' => TRUE,
  ] + parent::defaultConfiguration();
  return $configurations;
}