protected function ChartsGraphsBluff::_get_translated_chart_type in Charts and Graphs 6.2
Same name and namespace in other branches
- 7 apis/charts_graphs_bluff/charts_graphs_bluff.class.inc \ChartsGraphsBluff::_get_translated_chart_type()
Converts the standard Charts and Graphs chart type to Bluff chart type.
Return value
string
1 call to ChartsGraphsBluff::_get_translated_chart_type()
- ChartsGraphsBluff::get_chart in apis/
charts_graphs_bluff/ charts_graphs_bluff.class.inc - Function that renders data.
File
- apis/
charts_graphs_bluff/ charts_graphs_bluff.class.inc, line 43 - Implementation of abstract class ChartsGraphsCanvas for Bluff library.
Class
- ChartsGraphsBluff
- Implementation of abstract class ChartsGraphsCanvas 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;
}