label Function (For GPL Guides)

Note: If you are modifying the label for a graphic element (like a bar or point), refer to label Function (For GPL Graphic Elements) .

Syntax

label("label text" ...)

"label text". The text that appears in the label. You can specify multiple strings by separating the strings with commas (for example, label("This is a ", "long label")). The strings are concatenated in the resulting graph.

Description

Specifies a label for a guide (for example, an axis or legend). This is text that is displayed on the resulting graph.

Examples

Figure 1. Example: Specifying an axis title
GUIDE: axis(dim(1), label("Job Category"))
Figure 2. Example: Specifying a legend title
GUIDE: legend(aesthetic(aesthetic.color), label("Gender"))
Figure 3. Example: Specifying a graph title
GUIDE: text.title(label("Sales By Region"))