Interface: LegendGlyph
Experimental
What the legend draws for one trace (E5.2). Colors are CSS color strings.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
fill? | readonly | object | Experimental |
fill.color? | readonly | string | - |
fill.lineColor? | readonly | string | - |
fill.lineWidth? | readonly | number | - |
fill.pattern? | readonly | Readonly<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. |
kind | readonly | "marker" | "line" | "lines+markers" | "bar" | "fill" | "parts" | Experimental parts: the LegendGlyph.parts only (M4: the two-direction ohlc / candlestick glyphs). |
line? | readonly | object | Experimental |
line.color? | readonly | string | - |
line.dash? | readonly | string | - |
line.width? | readonly | number | - |
marker? | readonly | object | Experimental |
marker.color? | readonly | string | - |
marker.image? | readonly | string | Image sprite drawn instead of the symbol (marker.image, plan E8.11). |
marker.lineColor? | readonly | string | - |
marker.lineWidth? | readonly | number | - |
marker.opacity? | readonly | number | - |
marker.size? | readonly | number | - |
marker.symbol? | readonly | string | number | - |
parts? | readonly | readonly LegendGlyphPart[] | Experimental Segments and rects drawn in order (rects below segments), for kind: 'parts'. |