Skip to content

grafit-charts


Interface: LegendMarkerOptions

Extended by

Properties

cornerRadius?

optional cornerRadius?: number

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


lineDash?

optional lineDash?: number[]

Dashes for a 'line' marker.


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.


shape?

optional shape?: LegendMarkerShape

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


size?

optional size?: number

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


stroke?

optional stroke?: string

Outline colour; without it the glyph is filled only.


strokeWidth?

optional strokeWidth?: number

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


viewBox?

optional viewBox?: number

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