Skip Menu |
 

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

Report information
The Basics
Id: 48380
Status: resolved
Priority: 0/
Queue: Chart-OFC2

People
Owner: jozef [...] kutej.net
Requestors: jgoulah [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: bar 3d not supported (contains patch)
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1132
Download (untitled) / with headers
text/plain 1.1k
When trying to use bar 3d you get: [error] Caught exception in SocialFlowCMS::Controller::Reports->chart_data "Attribute (type_name) does not pass the type constraint because: Validation failed for '__ANON__' failed with value bar_3d at /home/jgoulah/perl5/lib/perl5/Moose/Meta/Attribute.pm line 753 This fixes it: diff --git a/lib/Chart/OFC2/Element.pm b/lib/Chart/OFC2/Element.pm index 4ec983c..08dd130 100644 --- a/lib/Chart/OFC2/Element.pm +++ b/lib/Chart/OFC2/Element.pm @@ -34,7 +34,7 @@ our $VERSION = '0.04'; =cut -has 'type_name' => (is => 'rw', isa => enum([qw(bar bar_filled pie hbar line line_dot line_hollow area_hollow scatter)]), required => 1); +has 'type_name' => (is => 'rw', isa => enum([qw(bar bar_3d bar_filled pie hbar line line_dot line_hollow area_hollow scatter)]), required => 1); has 'values' => (is => 'rw', isa => 'ArrayRef', trigger => sub { $_[0]->extremes->reset('y' => $_[1]); } ); has 'extremes' => (is => 'rw', isa => 'Chart.OFC2.Extremes', default => sub { Chart::OFC2::Extremes->new() }, lazy => 1, coerce => 1); has 'use_extremes' => (is => 'rw', isa => 'Bool',);
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-26882-1249920509-282.48380-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 82


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.