[Jifty-commit] r3790 - in jifty/trunk: .
lib/Jifty/Plugin/Chart/Renderer
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Aug 4 18:31:18 EDT 2007
Author: sterling
Date: Sat Aug 4 18:31:18 2007
New Revision: 3790
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/Chart/ (props changed)
jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/PlotKit.pm
Log:
r8372 at dynpc145: andrew | 2007-08-04 17:30:09 -0500
r8358 at dynpc145: andrew | 2007-08-04 16:46:12 -0500
Fixing my previous brain damage and additional typos.
Modified: jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/PlotKit.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/PlotKit.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/PlotKit.pm Sat Aug 4 18:31:18 2007
@@ -50,9 +50,9 @@
my %types = (
lines => { type => 'line' },
- bars => { type => 'bar', orientation => 'vertical' },
+ bars => { type => 'bar', barOrientation => 'vertical' },
pie => { type => 'pie' },
- horizontalbars => { type => 'bar', orientation => 'horizontal' },
+ horizontalbars => { type => 'bar', barOrientation => 'horizontal' },
);
# save it for error reporting
@@ -60,8 +60,8 @@
# Make sure the type is ready to be used
my $options = $types{ $args{type} } || {};
- $args{type} = delete $types{type};
- $args{options}{$_} = $types{$_} foreach keys %types;
+ $args{type} = delete $options->{type};
+ $args{options}{$_} = $options->{$_} foreach keys %$options;
if ( not defined $args{type} ) {
Jifty->log->warn("Unsupported chart type: $orig_type!");
More information about the Jifty-commit
mailing list