Skip Menu |
 

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

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

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

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



Subject: ability to set background color (includes 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: 948
Download (untitled) / with headers
text/plain 948b
Need to be able to set chart background color, suggested patch: diff --git a/lib/Chart/OFC2.pm b/lib/Chart/OFC2.pm index 79c5544..dbddcbd 100644 --- a/lib/Chart/OFC2.pm +++ b/lib/Chart/OFC2.pm @@ -99,6 +99,7 @@ has 'elements' => (is => 'rw', isa => 'ArrayRef', default => sub{[]}, lazy has 'extremes' => (is => 'rw', isa => 'Chart::OFC2::Extremes', default => sub { Chart::OFC2::Extremes->new() }, lazy => has '_json' => (is => 'rw', isa => 'Object', default => sub { JSON::XS->new->pretty(1)->convert_blessed(1) }, lazy => has 'tooltip' => (is => 'rw', isa => 'Chart::OFC2::ToolTip', coerce => 1); +has 'bg_colour' => (is => 'rw', isa => 'Str', default => 'f8f8d8'); =head1 METHODS @@ -167,6 +168,7 @@ sub render_chart_data { 'y_axis' => $self->y_axis, 'tooltip' => $self->tooltip, 'elements' => $self->elements, + 'bg_colour' => $self->bg_colour, }); }


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.