File: View.pm

package info (click to toggle)
libjifty-plugin-chart-perl 1.01%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 364 kB
  • sloc: perl: 2,614; sh: 48; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use strict;
use warnings;

package TestApp::Plugin::Chart::View;
use Jifty::View::Declare -base;

template '/graphit' => page {
    Jifty->web->chart(
        type   => 'Pie',
        width  => '100%',
        height => 500,
        data   => sub {
            [
                [ 2004, 2005, 2006, 2007 ],
                [ 26, 37, 12, 42 ]
            ];
        },
    );
};

1;