function theme_analytics_event_overview in Analytics 6
Theme an individual event overview.
Parameters
$overview:
Return value
unknown_type
1 theme call to theme_analytics_event_overview()
- analytics_event_overview in modules/
analytics_ui/ analytics_ui.admin.inc - Page callback for a specific event overview.
File
- modules/
analytics_ui/ analytics_ui.admin.inc, line 83
Code
function theme_analytics_event_overview($overview) {
// @TODO This whole function is just debugging crap. Fix it.
$output = '';
$chart = array(
'#chart_id' => 'daily_chart',
'#title' => chart_title(t('Data by day'), 'cc0000', 15),
'#type' => CHART_TYPE_LINE,
'#size' => chart_size(700, 400),
'#adjust_resolution' => TRUE,
'#grid_lines' => chart_grid_lines(16.66, 20, 1, 5),
);
$chart['#data']['total'] = $overview['daily_data'];
$chart['#data_colors'][] = '00ff00';
$chart['#legends'][] = 'times';
foreach ($overview['daily_data'] as $date => $data) {
$chart['#mixed_axis_labels'][CHART_AXIS_X_BOTTOM][1][] = chart_mixed_axis_label(date('D', $date));
}
$chart['#mixed_axis_labels'][CHART_AXIS_X_BOTTOM][2][] = chart_mixed_axis_label(t('day'), 50);
$output .= chart_render($chart);
dsm($overview);
return $output;
}