You are here

function quiz_dashboard_get_adv_stats in Quiz 6.6

1 string reference to 'quiz_dashboard_get_adv_stats'
quiz_dashboard_menu in includes/quiz_dashboard/quiz_dashboard.module
@function Implementation of hook_menu()

File

includes/quiz_dashboard/quiz_dashboard.admin.inc, line 43

Code

function quiz_dashboard_get_adv_stats($nid = 0, $uid = 0) {
  $output = '<div class="quiz-dashboard-chart-wrapper">';
  $output .= _get_date_vs_takeup_count_chart($nid, $uid);

  // line chart/graph showing quiz takeup date along x-axis and count along y-axis
  $output .= _get_quiz_status_chart($nid, $uid);

  // 3D pie chart showing percentage of pass, fail, incomplete quiz status
  $output .= _get_quiz_top_scorers_chart($nid, $uid);

  // Bar chart displaying top scorers
  $output .= _get_quiz_grade_range_chart($nid, $uid);
  if (!strlen($output)) {
    drupal_set_message(t('Insufficient data, unable to generate chart'), 'warning');
  }
  return $output;
}