line Element (GPL)

Syntax

line.<collision modifier>(<function>)

<collision modifier>. A method that specifies what should happen when two line graphic elements overlap each other. The collision modifier is optional.

<function>. One or more valid functions. The position function is required. The scale function is required when there are multiple scales in a single dimension (as in a "dual axis" graph).

Description

Specifies a line graphic element. The line is drawn through values in the order in which they appear in the x-axis domain. This is one of the features that distinguishes a line graphic element from the path graphic element. See path Element (GPL) for more information about the path graphic element.

Examples

Figure 1. Example: Line chart of continuous variables
ELEMENT: line(position(salbegin*salary))
Figure 2. Example: Line chart of a summary statistic
ELEMENT: line(position(summary.mean(jobcat*salary)))