[Jifty-commit] r5578 - in jifty/trunk: lib/Jifty/Plugin/Chart/Renderer
Jifty commits
jifty-commit at lists.jifty.org
Thu Jul 24 17:14:47 EDT 2008
Author: trs
Date: Thu Jul 24 17:14:47 2008
New Revision: 5578
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/Google.pm
Log:
r37903 at zot: tom | 2008-07-24 15:49:16 -0400
Pie charts require a different parameter for labels/legends
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 Jul 24 17:14:47 2008
@@ -147,7 +147,9 @@
# Add the legend
if ( $args{'legend'} ) {
- $url .= "&chdl=" . join '|', map { uri_escape($_) } @{ $args{'legend'} };
+ my $key = $args{'type'} =~ /pie/i ? 'chl' : 'chdl';
+
+ $url .= "&$key=" . join '|', map { uri_escape($_) } @{ $args{'legend'} };
$url .= "&chdlp=" . substr $args{'legend_position'}, 0, 1
if $args{'legend_position'};
}
More information about the Jifty-commit
mailing list