get_dashboard_stats(); $series = $this->get_events_over_time(14); $top_events = $this->get_top_events(); $top_users = $this->get_top_users(); $max_count = 0; foreach ($series as $point) { $max_count = max($max_count, (int) $point['count']); } ?>