-
-
12 May 2015 08:41:33 UTC
- Distribution: Imager-Graph
- Module version: 0.11
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Clone git repository
- Issues (18)
- Testers (950 / 0 / 0)
- Kwalitee
Bus factor: 1- 81.59% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (257.03KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Imager
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Imager::Graph::Horizontal - A super class for line/bar charts
DESCRIPTION
This is a base class that implements base functionality for line and bar charts.
The sub-classes, Imager::Graph::Bar and Imager::Graph::Line simply provide default data series types.
METHODS
- add_data_series(\@data, $series_name)
-
Add a data series to the graph, of the default type.
- add_bar_data_series(\@data, $series_name)
-
Add a bar data series to the graph.
- add_line_data_series(\@data, $series_name)
-
Add a line data series to the graph.
- set_column_padding($int)
-
Sets the number of pixels that should go between columns of data.
- set_negative_background($color)
-
Sets the background color or fill used below the y axis.
- draw()
-
Draw the graph
- show_vertical_gridlines()
-
Shows vertical gridlines at the y-tics.
Feature: vertical_gridlines
- set_vertical_gridline_style(color => ..., style => ...)
-
Set the color and style of the lines drawn for gridlines.
Style equivalent: vgrid
- show_line_markers()
- show_line_markers($value)
-
Feature: linemarkers.
If $value is missing or true, draw markers on a line data series.
Note: line markers are drawn by default.
- use_automatic_axis()
-
Automatically scale the Y axis, based on Chart::Math::Axis. If Chart::Math::Axis isn't installed, this sets an error and returns undef. Returns 1 if it is installed.
- set_x_tics($count)
-
Set the number of X tics to use. Their value and position will be determined by the data range.
AUTHOR
Patrick Michaud, Tony Cook
Module Install Instructions
To install Imager::Graph, copy and paste the appropriate command in to your terminal.
cpanm Imager::Graph
perl -MCPAN -e shell install Imager::Graph
For more information on module installation, please visit the detailed CPAN module installation guide.