From: Michael Andreen Date: Tue, 30 Jan 2007 10:17:53 +0000 (+0000) Subject: fewer x values X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=50cdad189ed7bc2713c21931d047184ed7efe9b4;p=ndwebbie.git fewer x values --- diff --git a/ND/Web/Graph.pm b/ND/Web/Graph.pm index 3f52b06..6f5ff47 100644 --- a/ND/Web/Graph.pm +++ b/ND/Web/Graph.pm @@ -52,7 +52,7 @@ sub graphFromQuery { } } - $graph_settings{x_label_skip} = int(1+(scalar @{$fields[0]}) / 10); + $graph_settings{x_label_skip} = int(1+(scalar @{$fields[0]}) / 6); my $graph = GD::Graph::lines->new($x,$y); $graph->set_legend(@{$query->{NAME}}[1..$fields]) or die $graph->error;