The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Hypatia::Chart::Clicker::Pie - Line Charts with Hypatia and Chart::Clicker

VERSION

version 0.026

SYNOPSIS

This module extends Hypatia::Chart::Clicker. The graph method (also known as the chart method) returns the Chart::Clicker object built from the relevant data and options provided.

ATTRIBUTES

columns

The required column types are label and values. Each of these must be a single string.

If this attribute isn't provided, then column guessing proceeds in the obvious manner: if there are two columns, then the first is of type label and the second of type values, and otherwise an error is thrown.

use_gradient

A boolean value determining whether or not a gradient should be applied to the pie chart. Defaults to 0.

gradient_color

This is a hash reference of red, green, blue, and alpha values that are passed into a Graphics::Color::RGB object (or, if you prefer, you can pass in a Graphics::Color::RGB object directly). The default RGBA values are 1,1,1,0.25, respectively.

METHODS

chart

This method returns the relevant Chart::Clicker object. If neither the dbi nor the input_data attributes have been set, then you can input your data as an argument here.

AUTHOR

Jack Maney <jack@jackmaney.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Jack Maney.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.