You are here

function charts_plugin_style_chart::options in Charts 7

Same name and namespace in other branches
  1. 6 views/charts_plugin_style_chart.inc \charts_plugin_style_chart::options()

Set default options.

Overrides views_object::options

File

views/charts_plugin_style_chart.inc, line 18
Contains the chart style plugin. @author Bruno Massa http://drupal.org/user/67164 @author Karen Stevenson http://drupal.org/user/45874

Class

charts_plugin_style_chart
Style plugin to render view as a chart.

Code

function options(&$options) {

  // Get the default chart values
  module_load_include('inc', 'charts');
  $options['charts'] = _charts_settings();

  // (yet) Non default chartssettings
  $form['show_legend'] = TRUE;
  $form['show_sums'] = TRUE;
  $options['aggregation_field'] = '';
  $options['calc_fields'] = array();
  $options['calc'] = 'COUNT';
  $options['precision'] = 2;
}