function views_plugin_style_chart::option_definition in Views Charts 7
Same name and namespace in other branches
- 6 views_plugin_style_chart.inc \views_plugin_style_chart::option_definition()
Set default options.
Overrides views_plugin_style::option_definition
File
- ./
views_plugin_style_chart.inc, line 21 - Holds views_plugin_style_chart class which implements the chart plugin.
Class
Code
function option_definition() {
$options = parent::option_definition();
$options['width'] = array(
'default' => '500',
);
$options['height'] = array(
'default' => '600',
);
$options['type'] = array(
'default' => array(
'bluff' => 'line',
),
);
$options['showlegend'] = TRUE;
$options['zoom'] = FALSE;
$options['views_charts_series_fields'] = array(
'default' => array(),
);
$options['views_charts_x_labels'] = array(
'default' => '',
);
$options['engine'] = array(
'default' => 'bluff',
);
$options['y_min'] = array(
'default' => '0',
);
$options['y_max'] = array(
'default' => '100',
);
$options['y_step'] = array(
'default' => '25',
);
$options['y_legend'] = array(
'default' => FALSE,
);
$options['background_colour'] = array(
'default' => '#FFFFFF',
);
$options['series_colours'] = array(
'default' => array(),
);
return $options;
}