--- loncom/interface/statistics/loncorrectproblemplot.pm 2004/02/02 21:45:12 1.1 +++ loncom/interface/statistics/loncorrectproblemplot.pm 2004/02/02 21:54:13 1.4 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: loncorrectproblemplot.pm,v 1.1 2004/02/02 21:45:12 matthew Exp $ +# $Id: loncorrectproblemplot.pm,v 1.4 2004/02/02 21:54:13 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -35,14 +35,6 @@ use Apache::loncoursedata(); use Apache::lonstatistics; use Apache::lonstathelpers; use Apache::lonlocal; -use HTML::Entities(); -use Time::Local(); -use Spreadsheet::WriteExcel(); - -my $plotcolors = ['#33ff00', - '#ff33cc', '#990000', '#aaaa66', '#663399', '#ff9933', - '#66ccff', '#ff9999', '#cccc33', '#660000', '#33cc66', - ]; my @SubmitButtons = ( { name => 'CreatePlot', @@ -53,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)=@_; # @@ -123,7 +129,10 @@ sub BuildCorrectProblemsPage { =pod -=item +=item & AnalyzeScoreData($score_data) + +Analyze the result of &Apache::loncoursedata::get_student_scores() and +return html with a plot of the data and a table of the values and bins. =cut @@ -231,7 +240,11 @@ sub bin_data { =pod -=item +=item &CreateInterface + +Inputs: none. + +Returns: HTML for the correct problems plot interface. =cut