RTx-Statistics in 2.1 / 3.8
authorivan <ivan>
Sun, 5 Dec 2010 02:21:23 +0000 (02:21 +0000)
committerivan <ivan>
Sun, 5 Dec 2010 02:21:23 +0000 (02:21 +0000)
rt/share/html/RTx/Statistics/CallsMultiQueue/Elements/Chart
rt/share/html/RTx/Statistics/CallsQueueDay/Elements/Chart
rt/share/html/RTx/Statistics/DayOfWeek/Elements/Chart
rt/share/html/RTx/Statistics/OpenStalled/Elements/Chart
rt/share/html/RTx/Statistics/Resolution/Elements/Chart

index 02a183b..6a7279b 100755 (executable)
@@ -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');
index 9a3a505..2d6b43c 100755 (executable)
@@ -12,7 +12,7 @@ print "<p>";
 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',
index 239c095..7bdf56b 100755 (executable)
@@ -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');
index 9505881..e9057ce 100755 (executable)
@@ -12,7 +12,7 @@ print "<p>";
 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');
index fa0ac55..01196dc 100755 (executable)
@@ -12,7 +12,7 @@ print "<p>";
 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');