Skip Menu |

This queue is for tickets about the Chart-OFC CPAN distribution.

Report information
The Basics
Id: 38383
Status: resolved
Priority: 0/
Queue: Chart-OFC

People
Owner: Nobody in particular
Requestors: joshua.mcadams [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.07
Fixed in: 0.08



Subject: Pie chart final arguement needs to be a style instead of a color
The final data element on the &pie line of a pie chart needs to be a label style instead of a label color. I've attached a patch that uses label_style instead of label_color.
Subject: Chart_OFC_Pie.pm.patch
--- /Users/jmcadams/Desktop/Chart-OFC-0.07/lib/Chart/OFC/Pie.pm 2008-03-13 15:05:10.000000000 -0500 +++ Pie.pm 2008-08-10 17:34:27.000000000 -0500 @@ -22,6 +22,11 @@ default => sub { [ qw( red blue green yellow orange purple black ) ] }, ); +has label_style => + ( is => 'ro', + isa => 'Str', + ); + has line_color => ( is => 'ro', isa => 'Chart::OFC::Type::Color', @@ -68,7 +73,8 @@ return ( super(), - $self->_data_line( 'pie', $self->opacity(), $self->line_color(), $self->label_color() ), + $self->_data_line( 'pie', $self->opacity(), $self->line_color(), + '{' . $self->label_style() . '}' ), $self->_data_line( 'pie_labels', $self->labels() ), $self->_data_line( 'colours', @{ $self->slice_colors() } ), $self->dataset()->_ofc_data_lines(),