NAME
Hypatia::Chart::Clicker::Line - Line Charts with Hypatia and Chart::Clicker
VERSION
version 0.02
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 column guessing is used as needed via the algorithm described in Hypatia::Chart::Clicker::Role::XY.
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.