You are here

function charts_plugin_style_chart::options in Charts 6

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

Set default 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();
  $options['aggregation_field'] = '';
  $options['calc_fields'] = array();
  $options['calc'] = 'COUNT';
  $options['precision'] = 2;
}