View on

Element: legend/item

The legend/item element is used to draw a legend item.

Syntax

(legend/item <options>)

Options

Label Options

label label-align label-margin label-font-size label-color

Marker Options

marker-shape marker-align marker-margin marker-size marker-color color

Label Options

label

Set the label text.

label <value>
Examples:
;; set the label to 'Hello World'
label "Hello World"

label-align

Set the label alignment.

label-align [left|right]
Examples:
;; set the label alignment to left
label-align left

label-margin

Set the label margin/spacing. See the measure page for more details on valid values.

label-margin <measure>
Examples:
;; set the label margin to 2em
label-margin 2em

label-font-size

Set the label font size. See the measure page for more details on valid values.

label-font-size <measure>
Examples:
;; set the label font size to 14pt
label-font-size 14pt

label-color

Set the label color. See the color page for more details on valid values.

label-color <color>
Examples:
;; set the label color to grey
label-color #eee

Marker Options

marker-shape

Set the marker shape.

marker <marker-shape>
Examples:
;; set the marker shape to hexagon
marker-shape (hexagon)

marker-align

Set the marker alignment.

marker-align [left|right]
Examples:
;; set the marker alignment to left
marker-align left

marker-margin

Set the marker margin/spacing. See the measure page for more details on valid values.

marker-margin <measure>
Examples:
;; set the marker margin to 2em
marker-margin 2em

marker-size

Set the marker size. See the measure page for more details on valid values.

marker-size <measure>
Examples:
;; set the marker size to 14pt
marker-size 14pt

marker-color

Set the marker color. See the color page for more details on valid values.

marker-color <color>
Examples:
;; set the marker color to grey
marker-color #eee

color

Alias for the marker-color option.
Edit this page on GitHub