The text label displayed next to the icon.
OptionalcolorColor for the legend icon (CSS color string). Used only if neither image nor svg are provided.
OptionalimageHTML image element to display as the legend icon. Takes precedence over svg and color properties.
OptionalsvgSVG markup or path data to display as the legend icon. Takes precedence over color but is overridden by image. Supports full SVG markup strings.
Represents a single item in the legend display. The visual representation follows a priority order: image > svg > color. Only one visual type will be used per item.