ChartDirector Ver 3.0 (Perl Edition)

BaseChart.addLine


Usage

addLine(x1, y1, x2, y2[, color[, lineWidth]])

Description

Add a line to the chart.

Arguments

ArgumentDefaultDescription
x1(Mandatory)The x coordinate of the first endpoint of the line.
y1(Mandatory)The y coordinate of the first endpoint of the line.
x2(Mandatory)The x coordinate of the second endpoint of the line.
y2(Mandatory)The y coordinate of the second endpoint of the line.
colorLineColorThe color of the line.
lineWidth1The width of the line.

Return Value

A Line object representing the line added. You may use this object to fine-tune the appearance of the line.