From f5b3090ec9f02f5b8eaaa22c99f105266d0f2441 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" <> Date: Tue, 2 Feb 1999 23:03:52 +0000 Subject: Don't draw any more than 20 date ticks. --- reports.cgi | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'reports.cgi') 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); -- cgit v1.2.3-24-g4f1b