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