VS::Chart::Renderer::Line - Renders a line chart
This class implements a standard line chart.
The width of the line to draw. Defaults to 4 points.
Sets the dash length for the line. Defaults to 0 (no dash). Can also be set on a specific dataset.
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.
Returns the type of chart we render, in this case line.
- render ( CHART, SURFACE )
Render CHART to SURFACE. Calls render in
- 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.