function charts_views_data in Charts 5.0.x
Same name and namespace in other branches
- 8.4 charts.module \charts_views_data()
- 8.3 charts.module \charts_views_data()
Implements hook_views_data().
File
- ./
charts.module, line 13 - Charts - Module.
Code
function charts_views_data() {
$data['charts_fields']['table']['group'] = t('Charts');
$data['charts_fields']['table']['join'] = [
// Exist in all views.
'#global' => [],
];
$data['charts_fields']['field_charts_fields_scatter'] = [
'title' => t('Scatter Field'),
'help' => t('Use this field for your data field in a scatter plot.'),
'field' => [
'id' => 'field_charts_fields_scatter',
],
];
$data['charts_fields']['field_exposed_chart_type'] = [
'title' => t('Exposed Chart Type'),
'help' => t('Use this field for exposing chart type.'),
'field' => [
'id' => 'field_exposed_chart_type',
],
];
return $data;
}