Chart::Clicker::Renderer - Base class for renderers


Chart-Clicker documentation Contained in the Chart-Clicker distribution.

Index


Code Index:

NAME

Top

Chart::Clicker::Renderer - Base class for renderers

DESCRIPTION

Top

Chart::Clicker::Renderer represents the plot of the chart.

SYNOPSIS

Top

  my $renderer = Chart::Clicker::Renderer::Foo->new();

ATTRIBUTES

Top

additive

Read-only value that informs Clicker that this renderer uses the combined ranges of all the series it charts in total. Used for 'stacked' renderers like StackedBar, StackedArea and Line (which will stack if told to). Note: If you set a renderer to additive that isn't additive, this will produce wonky results.

context

The context to which this Renderer is attached.

METHODS

Top

new

Creates a new Chart::Clicker::Renderer.

prepare

Prepare the component.

AUTHOR

Top

Cory G Watson <gphat@cpan.org>

SEE ALSO

Top

perl(1)

LICENSE

Top

You can redistribute and/or modify this code under the same terms as Perl itself.


Chart-Clicker documentation Contained in the Chart-Clicker distribution.

package Chart::Clicker::Renderer;
use Moose;

extends 'Graphics::Primitive::Canvas';

has 'additive' => ( is => 'rw', isa => 'Bool', default => 0 );
has 'clicker' => ( is => 'rw', isa => 'Chart::Clicker' );
has 'context' => ( is => 'rw', isa => 'Str' );

override('prepare', sub {
    my ($self) = @_;

    return 1;
});

__PACKAGE__->meta->make_immutable;

no Moose;

1;
__END__