Skip to content

Interface: LegendGlyph ​

Experimental

What the legend draws for one trace (E5.2). Colors are CSS color strings.

Properties ​

PropertyModifierTypeDescription
fill?readonlyobjectExperimental
fill.color?readonlystring-
fill.lineColor?readonlystring-
fill.lineWidth?readonlynumber-
fill.pattern?readonlyReadonly<Record<string, unknown>>A hatch pattern drawn instead of color (plan E8.10): the trace's Plotly pattern attributes (marker.pattern, fillpattern), of which the legend draws the first item, with color as the fill color they default to.
kindreadonly"marker" | "line" | "lines+markers" | "bar" | "fill" | "parts"Experimental parts: the LegendGlyph.parts only (M4: the two-direction ohlc / candlestick glyphs).
line?readonlyobjectExperimental
line.color?readonlystring-
line.dash?readonlystring-
line.width?readonlynumber-
marker?readonlyobjectExperimental
marker.color?readonlystring-
marker.image?readonlystringImage sprite drawn instead of the symbol (marker.image, plan E8.11).
marker.lineColor?readonlystring-
marker.lineWidth?readonlynumber-
marker.opacity?readonlynumber-
marker.size?readonlynumber-
marker.symbol?readonlystring | number-
parts?readonlyreadonly LegendGlyphPart[]Experimental Segments and rects drawn in order (rects below segments), for kind: 'parts'.

Released under the MIT License.