Skip to content

grafit-charts


Interface: LegendItemMarkerOptions

Extends

Properties

color?

optional color?: string

Glyph colour; a bound item inherits the series colour.


cornerRadius?

optional cornerRadius?: number

'square' only: corner rounding; 3 by default.

Inherited from

LegendMarkerOptions.cornerRadius


lineDash?

optional lineDash?: number[]

Dashes for a 'line' marker.

Inherited from

LegendMarkerOptions.lineDash


path?

optional path?: string

Custom glyph as SVG path data — wins over shape. Coordinates are taken in a viewBox square and scaled to the marker size, so the same d fits any size.

Inherited from

LegendMarkerOptions.path


shape?

optional shape?: LegendMarkerShape

'square' by default (a rounded square); 'line' draws a dash.

Inherited from

LegendMarkerOptions.shape


size?

optional size?: number

Marker box side; 10 by default (a 'line' marker is drawn 1.8× wider).

Inherited from

LegendMarkerOptions.size


stroke?

optional stroke?: string

Outline colour; without it the glyph is filled only.

Inherited from

LegendMarkerOptions.stroke


strokeWidth?

optional strokeWidth?: number

Outline width, and the thickness of a 'line' marker; 1 / theme width by default.

Inherited from

LegendMarkerOptions.strokeWidth


viewBox?

optional viewBox?: number

Side of the square the path coordinates live in; 24 by default.

Inherited from

LegendMarkerOptions.viewBox