Skip to content

@graphty/graphty-element / index / ScreenshotLegendSection

Interface: ScreenshotLegendSection ​

Defined in: graphty-element/src/screenshot/types.ts:123

One section of the key a capture draws (ScreenshotOptions.legend), in the caller's words.

Properties ​

note? ​

optional note?: string

Defined in: graphty-element/src/screenshot/types.ts:131

A line under the section, such as how many values were left out.


ramp? ​

optional ramp?: object

Defined in: graphty-element/src/screenshot/types.ts:129

A continuous scale from min to max: a bar painted with colors, or a size wedge without them.

colors? ​

optional colors?: readonly string[]

max ​

max: string

min ​

min: string


rows? ​

optional rows?: readonly object[]

Defined in: graphty-element/src/screenshot/types.ts:127

A line per value: its words, an optional color chip, and an optional value at the right.


title ​

title: string

Defined in: graphty-element/src/screenshot/types.ts:125

The section's heading.