Interface: LegendMarkerOptions
Extended by
Properties
cornerRadius?
optionalcornerRadius?:number
'square' only: corner rounding; 3 by default.
lineDash?
optionallineDash?:number[]
Dashes for a 'line' marker.
path?
optionalpath?: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?
optionalshape?:LegendMarkerShape
'square' by default (a rounded square); 'line' draws a dash.
size?
optionalsize?:number
Marker box side; 10 by default (a 'line' marker is drawn 1.8× wider).
stroke?
optionalstroke?:string
Outline colour; without it the glyph is filled only.
strokeWidth?
optionalstrokeWidth?:number
Outline width, and the thickness of a 'line' marker; 1 / theme width by default.
viewBox?
optionalviewBox?:number
Side of the square the path coordinates live in; 24 by default.