version 1.64, 2004/01/28 14:38:40
|
version 1.66, 2004/02/03 20:44:06
|
Line 773 sub plot_statistics {
|
Line 773 sub plot_statistics {
|
'Problem Number', |
'Problem Number', |
$yaxis, |
$yaxis, |
$Max, |
$Max, |
undef, |
undef, # colors |
|
undef, # labels |
\@Data)."</p>\n"); |
\@Data)."</p>\n"); |
# |
# |
# Print out the data |
# Print out the data |
Line 788 sub get_statistics {
|
Line 789 sub get_statistics {
|
my $symb = $resource->{'symb'}; |
my $symb = $resource->{'symb'}; |
my $courseid = $ENV{'request.course.id'}; |
my $courseid = $ENV{'request.course.id'}; |
# |
# |
my $students = \@Apache::lonstatistics::Students; |
|
if ($Apache::lonstatistics::SelectedSections[0] eq 'all') { |
|
$students = undef; |
|
} |
|
my $data = &Apache::loncoursedata::get_problem_statistics |
my $data = &Apache::loncoursedata::get_problem_statistics |
($students,$symb,$part,$courseid); |
(\@Apache::lonstatistics::SelectedSections, |
|
$Apache::lonstatistics::enrollment_status, |
|
$symb,$part,$courseid); |
$data->{'part'} = $part; |
$data->{'part'} = $part; |
$data->{'problem_num'} = $problem_num; |
$data->{'problem_num'} = $problem_num; |
$data->{'container'} = $sequence->{'title'}; |
$data->{'container'} = $sequence->{'title'}; |