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)
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',);