From 403553e427a4b91bdb204adafc4ebae2f105b3cc Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 5 Dec 2010 02:21:23 +0000 Subject: [PATCH] RTx-Statistics in 2.1 / 3.8 --- rt/share/html/RTx/Statistics/CallsMultiQueue/Elements/Chart | 2 +- rt/share/html/RTx/Statistics/CallsQueueDay/Elements/Chart | 2 +- rt/share/html/RTx/Statistics/DayOfWeek/Elements/Chart | 2 +- rt/share/html/RTx/Statistics/OpenStalled/Elements/Chart | 2 +- rt/share/html/RTx/Statistics/Resolution/Elements/Chart | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rt/share/html/RTx/Statistics/CallsMultiQueue/Elements/Chart b/rt/share/html/RTx/Statistics/CallsMultiQueue/Elements/Chart index 02a183b2c..6a7279bdc 100755 --- a/rt/share/html/RTx/Statistics/CallsMultiQueue/Elements/Chart +++ b/rt/share/html/RTx/Statistics/CallsMultiQueue/Elements/Chart @@ -23,7 +23,7 @@ $m->abort(); use GD::Graph::lines; my @data; -my $graph = GD::Graph::lines->new($Statistics::GraphWidth,$Statistics::GraphHeight); +my $graph = GD::Graph::lines->new($Statistics::GraphWidth||500,$Statistics::GraphHeight||400); $graph->set(export_format => "png", x_label => 'Day of Week', y_label => 'Tickets per day'); diff --git a/rt/share/html/RTx/Statistics/CallsQueueDay/Elements/Chart b/rt/share/html/RTx/Statistics/CallsQueueDay/Elements/Chart index 9a3a50574..2d6b43c17 100755 --- a/rt/share/html/RTx/Statistics/CallsQueueDay/Elements/Chart +++ b/rt/share/html/RTx/Statistics/CallsQueueDay/Elements/Chart @@ -12,7 +12,7 @@ print "

"; use GD::Graph::lines; my @data; -my $graph = GD::Graph::lines->new($Statistics::GraphWidth,$Statistics::GraphHeight); +my $graph = GD::Graph::lines->new($Statistics::GraphWidth||500,$Statistics::GraphHeight||400); $graph->set(export_format => "png", x_label => 'Day of Week', y_label => 'Tickets per Day', diff --git a/rt/share/html/RTx/Statistics/DayOfWeek/Elements/Chart b/rt/share/html/RTx/Statistics/DayOfWeek/Elements/Chart index 239c09541..7bdf56b80 100755 --- a/rt/share/html/RTx/Statistics/DayOfWeek/Elements/Chart +++ b/rt/share/html/RTx/Statistics/DayOfWeek/Elements/Chart @@ -9,7 +9,7 @@ use GD::Graph::bars; my @data; -my $graph = GD::Graph::bars->new($Statistics::GraphWidth,$Statistics::GraphHeight); +my $graph = GD::Graph::bars->new($Statistics::GraphWidth||500,$Statistics::GraphHeight||400); $graph->set(export_format => "png", x_label => 'Day of Week', y_label => 'Ticket actions per Day by type'); diff --git a/rt/share/html/RTx/Statistics/OpenStalled/Elements/Chart b/rt/share/html/RTx/Statistics/OpenStalled/Elements/Chart index 9505881e8..e9057ce73 100755 --- a/rt/share/html/RTx/Statistics/OpenStalled/Elements/Chart +++ b/rt/share/html/RTx/Statistics/OpenStalled/Elements/Chart @@ -12,7 +12,7 @@ print "

"; use GD::Graph::bars; my @data; -my $graph = GD::Graph::bars->new($Statistics::GraphWidth,$Statistics::GraphHeight); +my $graph = GD::Graph::bars->new($Statistics::GraphWidth||500,$Statistics::GraphHeight||400); $graph->set(export_format => "png", x_label => 'Queue name', y_label => 'Total per queue by status'); diff --git a/rt/share/html/RTx/Statistics/Resolution/Elements/Chart b/rt/share/html/RTx/Statistics/Resolution/Elements/Chart index fa0ac5538..01196dc9d 100755 --- a/rt/share/html/RTx/Statistics/Resolution/Elements/Chart +++ b/rt/share/html/RTx/Statistics/Resolution/Elements/Chart @@ -12,7 +12,7 @@ print "

"; use GD::Graph::lines; my @data; -my $graph = GD::Graph::lines->new($Statistics::GraphWidth,$Statistics::GraphHeight); +my $graph = GD::Graph::lines->new($Statistics::GraphWidth||500,$Statistics::GraphHeight||400); $graph->set(export_format => "png", x_label => 'Days', y_label => 'Average time in Days'); -- 2.11.0