X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ND%2FWeb%2FGraph.pm;h=6f5ff477b2d1e7e3aa4d4ed6832894f593676bea;hb=5bdf7f1c03127ec37bd29852ebc0279431ad93aa;hp=61f4fc2d7a2803482945bd4ff14d09effd5fe786;hpb=b9ef107dd273c96b9cc10214de41323b5d0925a5;p=ndwebbie.git diff --git a/ND/Web/Graph.pm b/ND/Web/Graph.pm index 61f4fc2..6f5ff47 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]}) / 6); my $graph = GD::Graph::lines->new($x,$y); $graph->set_legend(@{$query->{NAME}}[1..$fields]) or die $graph->error;