@kanunilabs/datagrid-enterprise
@kanunilabs/datagrid-enterprise / SparklineGeometry
Interface: SparklineGeometry
Properties
area
area:
string
d for the filled area under the line, one closed shape per unbroken run.
bars
bars:
SparklineBar[]
baselineX
baselineX:
number
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.
first
first:
SparklinePoint|null
First, lowest and highest readings (first occurrence), or null with no data.
horizontal
horizontal:
boolean
Horizontal bars (horizontal: true): they grow left to right, one row
per reading, and the zero line is VERTICAL, at this x.
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 — 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. A hole in the data
BREAKS the line (a new M), so a missing reading reads as missing.
lone
lone:
SparklinePoint[]
Readings with a hole on both sides. A one-point run draws no line, so a line or area sparkline marks these with a dot, or they would vanish.
max
max:
SparklinePoint|null
min
min:
SparklinePoint|null
points
points:
SparklinePoint[]
Every plotted reading, in order — for highlights and per-point tooltips.