--- loncom/interface/statistics/loncorrectproblemplot.pm 2004/02/02 21:52:28 1.3 +++ loncom/interface/statistics/loncorrectproblemplot.pm 2004/02/03 16:28:55 1.5 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: loncorrectproblemplot.pm,v 1.3 2004/02/02 21:52:28 matthew Exp $ +# $Id: loncorrectproblemplot.pm,v 1.5 2004/02/03 16:28:55 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -45,6 +45,20 @@ my @SubmitButtons = ( text => 'Update Student Data' }, ); +######################################################### +######################################################### + +=pod + +=item &BuildCorrectProblemsPage + +Entry point from lonstatistics to the correct problems plot page. + +=cut + +######################################################### +######################################################### + sub BuildCorrectProblemsPage { my ($r,$c)=@_; # @@ -157,7 +171,9 @@ sub AnalyzeScoreData { $Str.= ''.$bin->{'start'}.' - '.$bin->{'end'}.''. ''.$bin->{'count'}.''."\n"; } - my $title = ''; + # scale max to an integer. + $max = 5*(int($max/5)+1); + my $title = 'Correct Problems Plot'; $Str .= "
\n"; $Str = "
\n".&Apache::loncommon::DrawBarGraph($title, 'Num Correct Problems',