Author: spadkins Date: Thu May 24 10:47:49 2007 New Revision: 9608 Modified: p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm Log: Fix for dates labels being to close together Modified: p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm ============================================================================== --- p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm (original) +++ p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget/ChartDirector.pm Thu May 24 10:47:49 2007 @[EMAIL PROTECTED] -559,6 +559,7 @[EMAIL PROTECTED] my $r = sprintf("%.0f", $#x_date / 15); my $w = sprintf("%.0f", (800 / $spec->{width})); $r += $w if ($w > 1 && $r > 0); + $r += 1 if ($#x_date >= 13 && $spec->{width} <= 600); $chart->xAxis()->setLabelStep($r); } elsif ($x->[0] =~ /^[0-9]+$/) {