Diff for /loncom/interface/statistics/loncorrectproblemplot.pm between versions 1.2 and 1.5

version 1.2, 2004/02/02 21:51:52 version 1.5, 2004/02/03 16:28:55
Line 36  use Apache::lonstatistics; Line 36  use Apache::lonstatistics;
 use Apache::lonstathelpers;  use Apache::lonstathelpers;
 use Apache::lonlocal;  use Apache::lonlocal;
   
 my $plotcolors = ['#33ff00',   
                   '#ff33cc', '#990000', '#aaaa66', '#663399', '#ff9933',  
                   '#66ccff', '#ff9999', '#cccc33', '#660000', '#33cc66',  
                   ];   
   
 my @SubmitButtons = (  my @SubmitButtons = (
                      { name => 'CreatePlot',                       { name => 'CreatePlot',
                        text => 'Create Plot' },                         text => 'Create Plot' },
Line 50  my @SubmitButtons = ( Line 45  my @SubmitButtons = (
                        text => 'Update Student Data' },                         text => 'Update Student Data' },
                      );                       );
   
   #########################################################
   #########################################################
   
   =pod
   
   =item &BuildCorrectProblemsPage
   
   Entry point from lonstatistics to the correct problems plot page.
   
   =cut
   
   #########################################################
   #########################################################
   
 sub BuildCorrectProblemsPage {  sub BuildCorrectProblemsPage {
     my ($r,$c)=@_;      my ($r,$c)=@_;
     #      #
Line 162  sub AnalyzeScoreData { Line 171  sub AnalyzeScoreData {
         $Str.= '<tr><td>'.$bin->{'start'}.' - '.$bin->{'end'}.'</td>'.          $Str.= '<tr><td>'.$bin->{'start'}.' - '.$bin->{'end'}.'</td>'.
             '<td>'.$bin->{'count'}.'</td></tr>'."\n";              '<td>'.$bin->{'count'}.'</td></tr>'."\n";
     }      }
     my $title = '';      # scale max to an integer.
       $max = 5*(int($max/5)+1);
       my $title = 'Correct Problems Plot';
     $Str .= "</table><br />\n";      $Str .= "</table><br />\n";
     $Str = "<br />\n".&Apache::loncommon::DrawBarGraph($title,      $Str = "<br />\n".&Apache::loncommon::DrawBarGraph($title,
                                                        'Num Correct Problems',                                                         'Num Correct Problems',

Removed from v.1.2  
changed lines
  Added in v.1.5


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