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

Jifty commits jifty-commit at lists.jifty.org
Thu Oct 16 01:55:13 EDT 2008


Author: sartak
Date: Thu Oct 16 01:55:12 2008
New Revision: 5943

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

Log:
 r73822 at onn:  sartak | 2008-10-16 01:54:35 -0400
 zero_line for bar charts (for moving the bars further up or down the graph)


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	Thu Oct 16 01:55:12 2008
@@ -290,11 +290,14 @@
         $url .= "&chf=bg,s,$args{'bgcolor'}";
     }
 
-    # Add bar widths for bar charts
+    # Add bar widths and zero line for bar charts
     if ( $args{'type'} =~ /bar/i ) {
         @{ $args{'bar_width'} } = $self->_calculate_bar_width(\%args)
             if @{ $args{'bar_width'} || [] } == 0;
         $url .= "&chbh=" . join ',', @{ $args{'bar_width'} };
+
+        $url .= "&chp=" . $args{'zero_line'}
+            if defined $args{'zero_line'};
     }
 
     # Add shape/range markers


More information about the Jifty-commit mailing list