]> ruin.nu Git - ndwebbie.git/commitdiff
fewer x values
authorMichael Andreen <harv@ruin.nu>
Tue, 30 Jan 2007 10:17:53 +0000 (10:17 +0000)
committerMichael Andreen <harv@ruin.nu>
Tue, 30 Jan 2007 10:17:53 +0000 (10:17 +0000)
ND/Web/Graph.pm

index 3f52b06b462ea1eccc3a9c216df92be5465012f9..6f5ff477b2d1e7e3aa4d4ed6832894f593676bea 100644 (file)
@@ -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;