summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xreports.cgi7
1 files changed, 7 insertions, 0 deletions
diff --git a/reports.cgi b/reports.cgi
index 410abc105..f78fd643f 100755
--- a/reports.cgi
+++ b/reports.cgi
@@ -452,12 +452,19 @@ FIN
push @data, \@assigned;
push @data, \@reopened;
+ my $MAXTICKS = 20; # Try not to show any more x ticks than this.
+ my $skip = 1;
+ if (@dates > $MAXTICKS) {
+ $skip = int((@dates + $MAXTICKS - 1) / $MAXTICKS);
+ }
+
my %settings =
(
"title" => "Bug Charts for $::FORM{'product'}",
"x_label" => "Dates",
"y_label" => "Bug Count",
"legend_labels" => \@labels,
+ "skip_x_ticks" => $skip,
);
$img->set (%settings);