NAME
Hypatia::Chart::Clicker::Options - Options to apply to Chart::Clicker objects via Hypatia
VERSION
version 0.026
NOTE
Attributes of the following object types can be coerced from the following:
Graphics::Color::RGB from either a hash reference with keys of
r
,g
,b
, anda
(and values between 0 and 1) or a number between 0 and 1 that is passed in for each ofr
,g
,b
, anda
.Hypatia::Chart::Clicker::Options::Axis from a hash reference.
#subtype "TitleOptions", as class_type("Hypatia::Chart::Clicker::Options::Title"); #coerce "TitleOptions", from "Str", via { Hypatia::Chart::Clicker::Options::Title->new({text=>$_}) }; #coerce "TitleOptions", from "HashRef", via { Hypatia::Chart::Clicker::Options::Title->new($_) };
ATTRIBUTES
domain_axis,range_axis
These hash references are passed directly into Hypatia::Chart::Clicker::Options::Axis objects. Look at the documentation of that module for more details.
background_color
A Graphics::Color::RGB object that, unsurprisingly, controls the color of the background. The default is white.
format
A string: one of png
, pdf
, ps
, or svg
. The default is png
.
width,height
The width and height of the resulting image. The defaults are 500 and 300, respectively.
legend_position
One of north
, west
, east
, south
, or center
. The default is south
.
padding
A Graphics::Primitive::Insets object representing the amount of padding (in pixels) for each of the sides of the chart. You may also pass in either a hash reference (with keys of top
, bottom
, right
, and left
having positive integer values), or a positive integer (which is then assigned to each of top
, bottom
, right
, and left
).
title_position
One of north
, west
, east
, south
, or center
. The default is north
.
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.