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