You are here

public property ChartsDefaultSettings::$defaults in Charts 8.3

Same name and namespace in other branches
  1. 8.4 src/Settings/ChartsDefaultSettings.php \Drupal\charts\Settings\ChartsDefaultSettings::defaults
  2. 5.0.x src/Settings/ChartsDefaultSettings.php \Drupal\charts\Settings\ChartsDefaultSettings::defaults

File

src/Settings/ChartsDefaultSettings.php, line 18

Class

ChartsDefaultSettings

Namespace

Drupal\charts\Settings

Code

public $defaults = [
  'type' => 'line',
  'library' => NULL,
  'grouping' => FALSE,
  'label_field' => NULL,
  'data_fields' => NULL,
  'field_colors' => NULL,
  'title' => '',
  'title_position' => 'out',
  'data_labels' => FALSE,
  'data_markers' => TRUE,
  'legend' => TRUE,
  'legend_position' => 'right',
  'background' => '',
  'three_dimensional' => FALSE,
  'polar' => FALSE,
  'tooltips' => TRUE,
  'tooltips_use_html' => FALSE,
  'width' => NULL,
  'width_units' => '%',
  'height' => NULL,
  'height_units' => 'px',
  'xaxis_title' => '',
  'xaxis_labels_rotation' => 0,
  'yaxis_title' => '',
  'yaxis_min' => '',
  'yaxis_max' => '',
  'yaxis_prefix' => '',
  'yaxis_suffix' => '',
  'yaxis_decimal_count' => '',
  'yaxis_labels_rotation' => 0,
  'green_to' => 100,
  'green_from' => 85,
  'yellow_to' => 85,
  'yellow_from' => 50,
  'red_to' => 50,
  'red_from' => 0,
  'max' => 100,
  'min' => 0,
];