public function ChartsTypeInfo::chartsChartsTypeInfo in Charts 8.3
Get charts types info.
Return value
array Chart types.
2 calls to ChartsTypeInfo::chartsChartsTypeInfo()
- ChartsTypeInfo::getChartType in src/
Settings/ ChartsTypeInfo.php - Retrieve a specific chart type.
- ChartsTypeInfo::getChartTypes in src/
Settings/ ChartsTypeInfo.php
File
- src/
Settings/ ChartsTypeInfo.php, line 23
Class
Namespace
Drupal\charts\SettingsCode
public function chartsChartsTypeInfo() {
$chart_types['area'] = [
'label' => $this
->t('Area'),
'axis' => ChartsInterface::CHARTS_DUAL_AXIS,
'stacking' => TRUE,
];
$chart_types['bar'] = [
'label' => $this
->t('Bar'),
'axis' => ChartsInterface::CHARTS_DUAL_AXIS,
'axis_inverted' => TRUE,
'stacking' => TRUE,
];
$chart_types['column'] = [
'label' => $this
->t('Column'),
'axis' => ChartsInterface::CHARTS_DUAL_AXIS,
'stacking' => TRUE,
];
$chart_types['donut'] = [
'label' => $this
->t('Donut'),
'axis' => ChartsInterface::CHARTS_SINGLE_AXIS,
];
$chart_types['gauge'] = [
'label' => $this
->t('Gauge'),
'axis' => ChartsInterface::CHARTS_SINGLE_AXIS,
'stacking' => FALSE,
];
$chart_types['line'] = [
'label' => $this
->t('Line'),
'axis' => ChartsInterface::CHARTS_DUAL_AXIS,
];
$chart_types['pie'] = [
'label' => $this
->t('Pie'),
'axis' => ChartsInterface::CHARTS_SINGLE_AXIS,
];
$chart_types['scatter'] = [
'label' => $this
->t('Scatter'),
'axis' => ChartsInterface::CHARTS_DUAL_AXIS,
];
$chart_types['spline'] = [
'label' => $this
->t('Spline'),
'axis' => ChartsInterface::CHARTS_DUAL_AXIS,
];
return $chart_types;
}