[Jifty-commit] r5673 - in jifty/trunk: lib/Jifty/Plugin/Chart/Renderer
Jifty commits
jifty-commit at lists.jifty.org
Wed Aug 6 15:10:20 EDT 2008
Author: trs
Date: Wed Aug 6 15:10:18 2008
New Revision: 5673
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/Google.pm
Log:
r38716 at zot: tom | 2008-08-06 14:55:07 -0400
Let the Google Chart's renderer set axis styles
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 Wed Aug 6 15:10:18 2008
@@ -34,6 +34,7 @@
min_minus => 0,
max_plus => 0,
format => '%0.1f',
+ axis_styles => [],
@_
);
@@ -229,8 +230,19 @@
}
$index++;
}
+
+ my @styles;
+ $index = 0;
+ for my $style ( @{ $args{'axis_styles'} } ) {
+ if ( ref $style eq 'ARRAY' and @$style ) {
+ push @styles, join ',', $index, @$style;
+ }
+ $index++;
+ }
+
$url .= "&chxl=" . join '|', @labels if @labels;
$url .= "&chxr=" . join '|', @ranges if @ranges;
+ $url .= "&chxs=" . join '|', @styles if @styles;
}
}
More information about the Jifty-commit
mailing list