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.