[LON-CAPA-cvs] cvs: loncom /cgi graph.png

matthew lon-capa-cvs@mail.lon-capa.org
Wed, 08 Oct 2003 15:44:49 -0000


matthew		Wed Oct  8 11:44:49 2003 EDT

  Modified files:              
    /loncom/cgi	graph.png 
  Log:
  Added POD and removed some old development comments.
  
  
Index: loncom/cgi/graph.png
diff -u loncom/cgi/graph.png:1.21 loncom/cgi/graph.png:1.22
--- loncom/cgi/graph.png:1.21	Wed Mar 26 16:52:37 2003
+++ loncom/cgi/graph.png	Wed Oct  8 11:44:49 2003
@@ -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,16 +25,34 @@
 # 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;