NAME
Hypatia::Chart::Clicker::Bubble - 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
, y
, and size
. Each of the values for this attribute may be either a string (indicating one column) or an array reference of strings (indicating several columns). If y
and size
are array references, then they must be the same size. If x
is an array reference, then it also must be the same size as y
and size
(and in this case, each x
column will serve as x-axis values corresponding to the y
and size
columns). Otherwise, if x
is a string, then the single x
column will serve as a common set of x-values for all y
and size
values.
Of course, since size
represents size values for the given data set(s), please make sure that the data stored in any size
columns contains nonnegative values.
If this column isn't provided, then Hypatia will do its best job to guess which column names of your data correspond to which types, as follows:
- 1. If there are three columns, then they'll be assigned to
x
,y
, andsize
(respectively). =item 2. Otherwise, if the number of columns is a multiple of 3, then the corresponding types will be -
x, y, size, x, y, size,..., x, y, size
(ie each consecutive triple will be assigned to
x
,y
, andsize
, respectively). - 3. If the number of columns is odd, larger than 3, but not divisible by 3, then the first column will be assigned to type
x
, and the remaining columns will be paired off as types: -
y, size, y, size,..., y, size
- 4. If none of the above are the case, then an error is thrown.
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.