--- loncom/cgi/graph.png 2001/10/14 17:57:07 1.3 +++ loncom/cgi/graph.png 2001/12/25 23:37:43 1.5 @@ -1,18 +1,44 @@ #!/usr/bin/perl # -# The LearningOnline Network with CAPA +# $Id: graph.png,v 1.5 2001/12/25 23:37:43 minaeibi Exp $ +# +# Copyright Michigan State University Board of Trustees +# +# This file is part of the LearningOnline Network with CAPA (LON-CAPA). +# +# LON-CAPA is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# LON-CAPA is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # +# You should have received a copy of the GNU General Public License +# along with LON-CAPA; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# /home/httpd/cgi-bin/graph.gif +# +# http://www.lon-capa.org/ +# +# The LearningOnline Network with CAPA # Behrouz Minaei -# 9/13/2001, 9/25/2001 -# 10/6/2001, 10,9,2001 +# YEAR=2001 +# 9/13/2001, 9/25/2001, 10/6/2001, 10/9/2001, 12/25/2001 # # A CGI script that dynamically outputs a graphical chart for lonstatistics. +# +#### use strict; use GD::Graph::bars3d; use GD::Graph::colour; use GD::Graph::Data; +$|=1; # Autoflush after each print/write my ($cid, $Tag, $Max, $PNo, $data) = split(/&/,$ENV{'QUERY_STRING'}); my @data1=split(/\,/,$data);