You are here

function ChartsAmcharts::_preprocess_values in Charts and Graphs 6

1 call to ChartsAmcharts::_preprocess_values()
ChartsAmcharts::get_chart in apis/amcharts/amcharts.class.inc
Function that renders data.

File

apis/amcharts/amcharts.class.inc, line 25
Implementation of abstract class ChartCanvas for amCharts library.

Class

ChartsAmcharts
Implementation of abstract class ChartCanvas for amCharts library.

Code

function _preprocess_values() {
  if (in_array($this->type, array(
    'pie',
    'donut',
  ))) {
    return $this
      ->_preprocess_values_pie();
  }
  else {
    return $this
      ->_preprocess_values_not_pie();
  }
}