The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

VS::Chart::Renderer - Base class for renderers

ATTRIBUTES

BACKGROUND

background = ( 0 | 1 | COLOR )

Controls whether a background should be drawn for all of the resulting picture. Defaults to 1. Standard color is white.

INTERFACE

CLASS METHODS

new

Creates a new renderer instance.

set_defaults ( CHART )

Sets defaults attribute for the chart and returns a list of keys it's added. If an attribute already exists it's unaffected.

render ( CHART, SURFACE )

Renders the chart to the Cairo surface.

render_background ( CHART, SURFACE )

Renders the chart background if one is declared.

set_font ( CHART, SURFACE, SECTION)

Sets the current font face and size to what is defined by the settings for SECTION. For example, labels_font_face, labels_font_size, labels_font_slant and labels_font_weight.