Catalyst::View::Chart::StripA Catalyst View for Chart::Strip graphics | |
Download |
Catalyst::View::Chart::Strip Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- Brandon L Black
- Publisher web site:
- http://search.cpan.org/~blblack/
Catalyst::View::Chart::Strip Tags
Catalyst::View::Chart::Strip Description
A Catalyst View for Chart::Strip graphics Catalyst::View::Chart::Strip is a Perl module that allows the serving of Chart::Strip stripchart graphics via Catalyst. The raw numeric data and various chart options are placed in $c->stash.Instances of Catalyst::View::Chart::Strip, like MyApp::View::ChartStrip shown in the synopsis above, can be thought of as basically a collection of common defaults for the various chart options. You should probably create a seperate View class for each distinct style of charts your application commonly generates.All of the standard constructor arguments documented by Chart::Strip are supported as ->config parameters in your View class, and are also overrideable at chart generation time via $c->stash->{chart_opts}.SYNOPSIS package MyApp::View::ChartStrip; use strict; use base 'Catalyst::View::Chart::Strip'; __PACKAGE__->config( cs_package => 'Chart::Strip', height => 192, width => 720, limit_factor => 1, transparent => 0, img_type => 'png', palette => , ); 1; # A controller method which generates a chart: sub thechart : Local { my ( $self, $c ) = @_; $c->stash->{chart_opts} = $opts; $c->stash->{chart_data} = $data; $c->forward('MyApp::View::ChartStrip'); } Requirements: · Perl
Catalyst::View::Chart::Strip Related Software