From d5ffdf9667dc8c41e5bdaa0a1c5634405aa6f764 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 27 Jan 2007 21:27:31 +0000 Subject: [PATCH] fewer x values --- ND/Web/Graph.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ND/Web/Graph.pm b/ND/Web/Graph.pm index 61f4fc2..3f52b06 100644 --- a/ND/Web/Graph.pm +++ b/ND/Web/Graph.pm @@ -52,7 +52,7 @@ sub graphFromQuery { } } - $graph_settings{x_label_skip} = int((scalar @{$fields[0]}) / 10); + $graph_settings{x_label_skip} = int(1+(scalar @{$fields[0]}) / 10); my $graph = GD::Graph::lines->new($x,$y); $graph->set_legend(@{$query->{NAME}}[1..$fields]) or die $graph->error; -- 2.39.2