You are here

protected function ChartsBluff::_get_translated_chart_type in Charts and Graphs 6

1 call to ChartsBluff::_get_translated_chart_type()
ChartsBluff::get_chart in apis/charts_bluff/charts_bluff.class.inc
Function that renders data.

File

apis/charts_bluff/charts_bluff.class.inc, line 42
Implementation of abstract class ChartCanvas for Bluff library.

Class

ChartsBluff
Implementation of abstract class ChartCanvas for Bluff library.

Code

protected function _get_translated_chart_type() {
  switch ($this->type) {
    case 'mini_bar':
      $type = 'Mini.Bar';
      break;
    case 'mini_pie':
      $type = 'Mini.Pie';
      break;
    case 'mini_side_bar':
      $type = 'Mini.SideBar';
      break;
    case 'side_bar':
      $type = 'SideBar';
      break;
    case 'stacked_side_bar':
      $type = 'SideStackedBar';
      break;
    case 'stacked_area':
      $type = 'StackedArea';
      break;
    case 'stacked_bar':
      $type = 'StackedBar';
      break;
    default:
      $type = ucfirst($this->type);
  }
  return $type;
}