[Jifty-commit] r5847 - in jifty/trunk: lib/Jifty/Plugin/Chart/Renderer

Jifty commits jifty-commit at lists.jifty.org
Tue Sep 16 03:33:52 EDT 2008


Author: sartak
Date: Tue Sep 16 03:33:49 2008
New Revision: 5847

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/Google.pm

Log:
 r71136 at onn:  sartak | 2008-09-08 15:25:27 -0400
 We do need to duplicate the min/max values for the rest of the datasets


Modified: jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/Google.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/Google.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/Google.pm	Tue Sep 16 03:33:49 2008
@@ -200,8 +200,8 @@
         my @max = map { $_ - $args{'max_plus'}  } @{ $args{'max_value'} };
 
         # repeat if necessary
-        #push @min, ($min[-1]) x (@data - @min);
-        #push @max, ($max[-1]) x (@data - @max);
+        push @min, ($min[-1]) x (@{ $args{'data'} } - @min);
+        push @max, ($max[-1]) x (@{ $args{'data'} } - @max);
 
         $args{'calculated_min'} = \@min;
         $args{'calculated_max'} = \@max;


More information about the Jifty-commit mailing list