version 1.21, 2003/03/26 21:52:37
|
version 1.22, 2003/10/08 15:44:49
|
Line 25
|
Line 25
|
# http://www.lon-capa.org/ |
# http://www.lon-capa.org/ |
# |
# |
# The LearningOnline Network with CAPA |
# 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. |
# 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 strict; |
use GD::Graph::bars; |
use GD::Graph::bars; |
use GD::Graph::colour; |
use GD::Graph::colour; |