[svn:p5ee] r9608 - p5ee/trunk/App-Widget-ChartDirector/lib/App/Widget

[email protected]
Newsgroups perl.cvs.p5ee
Message-ID <[email protected]>
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
@@ -559,6 +559,7 @@
             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]+$/) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.