public function Google::processChartType in Charts 8.3
Parameters
$type:
Return value
string
1 call to Google::processChartType()
- Google::createChartsOptions in modules/
charts_google/ src/ Plugin/ chart/ Google.php - Create charts options.
File
- modules/
charts_google/ src/ Plugin/ chart/ Google.php, line 26
Class
- Define a concrete class for a Chart.
Namespace
Drupal\charts_google\Plugin\chartCode
public function processChartType($type) {
if ($type == 'column') {
$type = 'bars';
}
if ($type == 'bar') {
$type = 'bars';
}
if ($type == 'spline') {
$type = 'line';
}
return $type;
}