protected function Google::createChartType in Charts 8.3
Create Chart Type.
Parameters
array $options: Options.
array $customOptions: Overrides.
Return value
\Drupal\charts_google\Settings\Google\ChartType ChartType.
1 call to Google::createChartType()
- Google::buildVariables in modules/
charts_google/ src/ Plugin/ chart/ Google.php - Creates a JSON Object formatted for Google Charts JavaScript to use.
File
- modules/
charts_google/ src/ Plugin/ chart/ Google.php, line 593
Class
- Define a concrete class for a Chart.
Namespace
Drupal\charts_google\Plugin\chartCode
protected function createChartType($options = []) {
$googleChartType = new ChartType();
$googleChartType
->setChartType($options['type']);
return $googleChartType;
}