You are here

public function visualization_plugin_style::option_definition in Visualization API 7

Set default options.

Overrides views_plugin_style::option_definition

File

includes/views/visualization_plugin_style.inc, line 17
Views style plugin for Visualization.

Class

visualization_plugin_style
Style plugin uses views ui to configure views data for rendering charts.

Code

public function option_definition() {
  $options = parent::option_definition();
  $options['title'] = array(
    'default' => '',
  );
  $options['type'] = array(
    'default' => 'line',
  );
  $options['fields'] = array(
    'default' => array(),
  );
  $options['yAxis']['title'] = array(
    'default' => '',
  );
  $options['xAxis']['labelField'] = array(
    'default' => FALSE,
  );
  $options['xAxis']['invert'] = array(
    'default' => FALSE,
  );
  return $options;
}