The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

  Imager::Graph::Vertical- A super class for line/bar/column charts
add_data_series(\@data, $series_name)

Add a data series to the graph, of the default type.

add_column_data_series(\@data, $series_name)

Add a column data series to the graph.

add_stacked_column_data_series(\@data, $series_name)

Add a stacked column data series to the graph.

add_line_data_series(\@data, $series_name)

Add a line data series to the graph.

set_y_max($value)

Sets the maximum y value to be displayed. This will be ignored if the y_max is lower than the highest value.

set_y_min($value)

Sets the minimum y value to be displayed. This will be ignored if the y_min is higher than the lowest value.

set_column_padding($int)

Sets the padding between columns. This is a percentage of the column width. Defaults to 0.

set_range_padding($percentage)

Sets the padding to be used, as a percentage. For example, if your data ranges from 0 to 10, and you have a 20 percent padding, the y axis will go to 12.

Defaults to 10. This attribute is ignored for positive numbers if set_y_max() has been called, and ignored for negative numbers if set_y_min() has been called.

set_negative_background($color)

Sets the background color used below the x axis.

draw()

Draw the graph

show_horizontal_gridlines()

Shows horizontal gridlines at the y-tics.

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_y_tics($count)

Set the number of Y tics to use. Their value and position will be determined by the data range.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 15:

=over without closing =back

Around line 795:

=over without closing =back