Diff for /loncom/interface/statistics/loncorrectproblemplot.pm between versions 1.11 and 1.13

version 1.11, 2004/06/04 21:42:18 version 1.13, 2004/12/10 20:14:16
Line 110  sub BuildCorrectProblemsPage { Line 110  sub BuildCorrectProblemsPage {
                     }                      }
                 }                  }
             }              }
           } else {
               $title = "All Problems";
               foreach my $seq (&Apache::lonstatistics::Sequences_with_Assess()){
                   foreach my $res (@{$seq->{'contents'}}) {
                       next if ($res->{'type'} ne 'assessment');
                       $total_parts += scalar(@{$res->{'parts'}});
                   }
               }
         }          }
         my ($starttime,$endtime) = &Apache::lonstathelpers::get_time_limits();          my ($starttime,$endtime) = &Apache::lonstathelpers::get_time_limits();
         if (defined($starttime) || defined($endtime)) {          if (defined($starttime) || defined($endtime)) {
Line 148  sub AnalyzeScoreData { Line 156  sub AnalyzeScoreData {
     my ($score_data,$title,$total_parts) = @_;      my ($score_data,$title,$total_parts) = @_;
     #      #
     # Basic check first      # Basic check first
     if (@$score_data < 1) {      if (ref($score_data) ne 'ARRAY' || @$score_data < 1) {
         return '<h2>There is no data to plot</h2>';          return '<h2>'.&mt('There is no data to plot').'</h2>';
     }      }
     #      #
     # Determine which bins to use      # Determine which bins to use
Line 186  sub AnalyzeScoreData { Line 194  sub AnalyzeScoreData {
     $Str .= "</table><br />\n";      $Str .= "</table><br />\n";
     $title = &HTML::Entities::decode($title);      $title = &HTML::Entities::decode($title);
     $Str = "\n<p>".&Apache::loncommon::DrawBarGraph($title.' N = '.$sum,      $Str = "\n<p>".&Apache::loncommon::DrawBarGraph($title.' N = '.$sum,
                                  'Num Correct Problems (max:'.$total_parts.')',                                   'Correct Problems (max possible = '.$total_parts.')',
                                                        'Number of students',                                                         'Number of students',
                                                        $max,                                                         $max,
                                                        undef, # colors                                                         undef, # colors

Removed from v.1.11  
changed lines
  Added in v.1.13


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>