aboutsummaryrefslogtreecommitdiffstats
path: root/bin/problem-creation-graph
diff options
context:
space:
mode:
authormatthew <matthew>2008-11-12 18:06:34 +0000
committermatthew <matthew>2008-11-12 18:06:34 +0000
commitf109172f54cd57ad49e541bac7ce6ddfbfaf8baf (patch)
tree45c239ed9ede0211e8b7904d76d98228cfc57d30 /bin/problem-creation-graph
parent9fc51701a4581f27cdb8a2b8ef152c13e052721e (diff)
Differnet xrange date.
Diffstat (limited to 'bin/problem-creation-graph')
-rwxr-xr-xbin/problem-creation-graph10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/problem-creation-graph b/bin/problem-creation-graph
index 5b7bd238c..c3c670667 100755
--- a/bin/problem-creation-graph
+++ b/bin/problem-creation-graph
@@ -5,7 +5,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org. WWW: http://www.mysociety.org/
#
-# $Id: problem-creation-graph,v 1.5 2008-11-12 18:01:01 matthew Exp $
+# $Id: problem-creation-graph,v 1.6 2008-11-12 18:06:34 matthew Exp $
GPLOT_OUTPUT="set terminal png font 'Vera.ttf' 9 size 1200,400"
EXTENSION=".png"
@@ -20,6 +20,12 @@ source shlib/deployfns
read_conf bci/conf/general
+if [ $OPTION_BASE_URL = "http://reportemptyhomes.com" ]; then
+ DATE="2008-10-01"
+else
+ DATE="2007-02-01"
+fi
+
SOURCEA=/tmp/bci-creation-rate-graph-data-$RANDOM$RANDOM
SOURCEB=/tmp/bci-creation-rate-graph-data-$RANDOM$RANDOM
SOURCEC=/tmp/bci-creation-rate-graph-data-$RANDOM$RANDOM
@@ -63,7 +69,7 @@ cat >$GPSCRIPT <<END
set xdata time
set timefmt "%Y-%m-%d"
- set xrange ["2007-02-01":]
+ set xrange ["$DATE":]
set format x "%d %b %Y"
set xtics nomirror
set xlabel "status of problems that were created on each calendar day"