--- loncom/interface/statistics/loncorrectproblemplot.pm 2004/02/02 21:54:13 1.4
+++ loncom/interface/statistics/loncorrectproblemplot.pm 2004/02/20 16:24:20 1.6
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: loncorrectproblemplot.pm,v 1.4 2004/02/02 21:54:13 matthew Exp $
+# $Id: loncorrectproblemplot.pm,v 1.6 2004/02/20 16:24:20 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -71,7 +71,6 @@ sub BuildCorrectProblemsPage {
#
&Apache::lonstatistics::PrepareClasslist();
#
- $r->print('
'.&mt('Number of Correct Problems Plot').'
');
$r->print(&CreateInterface());
#
my @Students = @Apache::lonstatistics::Students;
@@ -171,7 +170,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',
@@ -254,6 +255,7 @@ sub CreateInterface {
##
## Environment variable initialization
my $Str;
+ $Str .= &Apache::lonhtmlcommon::breadcrumbs(undef,'Correct Problems Plot');
$Str .= ''."\n";
$Str .= '';
$Str .= ''.&mt('Sections').' | ';