You are here

protected function ViewsSimplechart::defineOptions in Views Simple Chart 8

Set default options.

Overrides StylePluginBase::defineOptions

File

src/Plugin/views/style/ViewsSimplechart.php, line 40

Class

ViewsSimplechart
Style plugin to render each item in an ordered or unordered list.

Namespace

Drupal\views_simplechart\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['chart_title'] = [
    'default' => 'Simple Chart',
  ];
  $options['chart_axis_mapping'] = [
    'default' => '',
  ];
  $options['chart_type_stacked'] = [
    'default' => 'no',
  ];
  $options['chart_type'] = [
    'default' => 'bar',
  ];
  $options['chart_legend_position'] = [
    'default' => 'bottom',
  ];
  $options['chart_width'] = [
    'default' => '400',
  ];
  $options['chart_height'] = [
    'default' => '300',
  ];
  return $options;
}