Documentation

@kanunilabs/datagrid-enterprise


@kanunilabs/datagrid-enterprise / SparklineGeometry

Interface: SparklineGeometry

Properties

area

area: string

d for the filled area under the line. Empty for fewer than 2 points.


bars

bars: SparklineBar[]


baselineY

baselineY: number

Y of the value zero (or of the axis the bars grow from).


count

count: number

How many values were actually plotted.


last

last: { negative: boolean; x: number; y: number; } | null

Last point, for the end-of-series dot. Null when there is no data.


lastValue

lastValue: number | null

The last plotted VALUE, in data units.

Separate from last.y, which is a viewBox coordinate and therefore both scaled and INVERTED. Both renderers used to announce last.y in their default aria-label, so a screen reader heard "ending at 4" for a series closing at 31 {M} a number that means nothing to the listener and happens to move the wrong way. Added so the label can say what the reader wants.


line

line: string

d for the line. Empty when there is nothing to draw.