NAME

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

VERSION

version 0.01

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 x and y. Each of the values for this attribute may be either a string (indicating one column) or an array reference of strings (indicating several columns). In the latter case, the number of x and y columns must match and each respective x and y column will form its own line graph. In the former case, the single x column will act as the same x column for all of the y columns.

If the columns attribute is not set, then the graph method will look at the column names from your table or query in the order in which they appear

stacked

A boolean value indicating whether or not the graph should be a stacked line graph (ie whether or not the y values should be treated cumulatively). This is disabled by default.

METHODS

chart([$data]), a.k.a graph([$data])

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.