--- loncom/cgi/graph.png 2003/03/26 21:52:37 1.21 +++ loncom/cgi/graph.png 2003/10/08 15:44:49 1.22 @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# $Id: graph.png,v 1.21 2003/03/26 21:52:37 matthew Exp $ +# $Id: graph.png,v 1.22 2003/10/08 15:44:49 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -25,17 +25,35 @@ # http://www.lon-capa.org/ # # The LearningOnline Network with CAPA -# Behrouz Minaei -# YEAR=2001 -# 9/13/01, 9/25/01, 10/6/01, 10/9/01, 12/25/01 -# YEAR=2002 -# 2/1/, 5/13, 5/15 -# YEAR=2003 -# 1/7/, 1/13 +# # A CGI script that dynamically outputs a graphical chart for lonstatistics. # #### +=pod + +=head1 NAME + +graph.png + +=head1 SYNOPSIS + +produces plots based on input + +=head1 DESCRIPTION + +graph.png is a cgi-bin script which produces plots based on input data. + +The query string is expected to be as follows (without whitespace): + +escape(Plot title) & escape(X label)& escape(Y label) & Maximum Y value & +Number of bars & $data1 & $data2 + +$data1 and $data2 are expected to be comma seperated lists of numbers. +escape( value ) means the values must be run through lonnet::escape. + +=cut + use strict; use GD::Graph::bars; use GD::Graph::colour;