Commit f5b3090e authored by terry%netscape.com's avatar terry%netscape.com

Don't draw any more than 20 date ticks.

parent 91e9353a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment