aboutsummaryrefslogtreecommitdiffstats
path: root/script/alert-tracks-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'script/alert-tracks-daemon')
0 files changed, 0 insertions, 0 deletions
class="n">group_by => [ 'date' ], order_by => [ 'date' ], } ); @entries = map { { $_->get_columns } } @entries; foreach (@entries) { $fh->print($_->{date}, ' ', $_->{count}, "\n"); } my $gp = <<END; unset border $config{gplot_output} set xdata time; set timefmt "%Y-%m-%d"; set format x "%b %Y" unset xlabel set ylabel "problems filed / calendar day" set xtics nomirror set ytics nomirror n = 0 plot "$source" using 1:2 with lines axes x1y2 lt 3 title "FixMyStreet problem reports" END open(my $gnuplot, '|-', "GDFONTPATH=/usr/share/fonts/truetype/ttf-bitstream-vera gnuplot > $DIR/web/fms-live-line$config{extension} 2> /dev/null") or die $!; $gnuplot->print($gp); close $gnuplot;