Subject: | Area Chart Arguments Not In Order |
In Chart/OFC/Dataset/Area.pm the data for the area_hollow line is
written out with the arguments in the order of: width, dot_size, color,
opacity. This matches the (broken) php library that this library was
modeled after, but doesn't match the action script that actually creates
the charting SWF. In the action script, the arguments are in the order
of: width, dot_size, opacity, color. A patch is attached.
Here are the lines from the action script file:
14 var vals:Array = lv[this.name].split(",");
15 this.line_width = Number( vals[0] );
16 this.circle_size = Number( vals[1] );
17 this.alpha = Number( vals[2] );
18 this.colour = _root.get_colour( vals[3] );
Subject: | Chart_OFC_Dataset_Area.patch |
--- lib/Chart/OFC/Dataset/Area.pm 2008-03-13 15:05:10.000000000 -0500
+++ /Library/Perl/5.8.8/Chart/OFC/Dataset/Area.pm 2008-08-10 15:57:40.000000000 -0500
@@ -36,7 +36,7 @@
{
my $self = shift;
- my @p = ( $self->width(), $self->dot_size(), $self->color(), $self->opacity() );
+ my @p = ( $self->width(), $self->dot_size(), $self->opacity(), $self->color() );
push @p, ( $self->label(), $self->text_size() )
if $self->_has_label();