NAME
VS::Chart::Renderer::Line - Renders a line chart
DESCRIPTION
This class implements a standard line chart.
ATTRIBUTES
LINES
- line_width
-
The width of the line to draw. Defaults to 4 points.
- line_dash
-
Sets the dash length for the line. Defaults to 0 (no dash). Can also be set on a specific dataset.
COLORS
The color a dataset is drawn with it taken from the datasets attribute color if such is defined. Otherwise the color which is used is selected from the dataset_-series in VS::Chart::Color where the index is the dataset number modulus 16.
INTERFACE
CLASS METHODS
- type
-
Returns the type of chart we render, in this case line.
- render ( CHART, SURFACE )
-
Render CHART to SURFACE. Calls render in
VS::Chart::Renderer::XY
first. - render_datasets ( CHART, SURFACE, LEFT, TOP, WIDTH, HEIGHT )
-
Renders the charts background. This is the area on which the actually data will be drawn, and not the axes, labels or ticks. The WIDTH and HEIGHT are calculated by taking their respetive values minus any offsets.