You are here

protected function FlotPie::defineOptions in Flot 8

Set default options.

Overrides StylePluginBase::defineOptions

File

flot_views_pie/src/Plugin/views/style/FlotPie.php, line 26

Class

FlotPie
Style plugin to render a list of numbers as a pie chart.

Namespace

Drupal\flot_views_pie\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['labels'] = [
    'default' => '',
  ];
  $options['values'] = [
    'default' => '',
  ];
  $options['pie_or_bar'] = [
    'default' => 'pie',
  ];
  return $options;
}