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

Jifty commits jifty-commit at lists.jifty.org
Fri Jul 25 14:33:54 EDT 2008


Author: trs
Date: Fri Jul 25 14:33:54 2008
New Revision: 5582

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

Log:
 r37976 at zot:  tom | 2008-07-25 14:31:35 -0400
 Support Google chart titles and support XML/SWF stacked horizontal bar charts


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	Fri Jul 25 14:33:54 2008
@@ -197,6 +197,12 @@
         $url .= "&chds=$min,$max";
     }
 
+    # Add a title
+    if ( defined $args{'title'} ) {
+        $args{'title'} =~ tr/\n/|/;
+        $url .= "&chtt=" . uri_escape( $args{'title'} );
+    }
+
     # Add the legend
     if ( $args{'legend'} ) {
         my $key = $args{'type'} =~ /pie/i ? 'chl' : 'chdl';

Modified: jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/XMLSWF.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/XMLSWF.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/XMLSWF.pm	Fri Jul 25 14:33:54 2008
@@ -57,6 +57,7 @@
         'bars'           => 'column',
         'stackedbars'    => 'stacked column',
         'horizontalbars' => 'bar',
+        'stackedhorizontalbars' => 'stacked bar',
         'lines'          => 'line',
         'pie'            => '3d pie',
         'points'         => 'scatter',


More information about the Jifty-commit mailing list