@kanunilabs/datagrid-react-enterprise
@kanunilabs/datagrid-react-enterprise / SparklineOptions
Interface: SparklineOptions
Extends
Omit<SparklineGeometryOptions,"horizontal">
Extended by
Properties
ariaLabel?
optionalariaLabel?:string
Screen-reader description. Falls back to the grid dictionary's summary.
color?
optionalcolor?:string
Series colour. Default: the theme's primary colour.
fillOpacity?
optionalfillOpacity?:number
highlight?
optionalhighlight?:object
Mark the first, lowest and/or highest reading too (see ColumnSparkline).
first?
optionalfirst?:boolean
max?
optionalmax?:boolean
min?
optionalmin?:boolean
labels?
optionallabels?:boolean
Each bar's value beside it (bar types).
lineDashed?
optionallineDashed?:boolean
lineWidth?
optionallineWidth?:number
Line thickness (1–6 px), dashed line and area opacity — see ColumnSparkline.
locale?
optionallocale?:string
Number formatting for the tooltip and the summary.
markers?
optionalmarkers?:boolean
A dot on every reading of a line or area.
max?
optionalmax?:number
Force the high end.
Inherited from
Omit.max
min?
optionalmin?:number
Force the low end of the scale — for comparing rows against each other.
Inherited from
Omit.min
negativeColor?
optionalnegativeColor?:string
Colour of bars below zero. Default: the theme's danger colour.
pointColor?
optionalpointColor?: (point) =>string|null|undefined
A colour per reading, or nothing for the default (see ColumnSparkline).
Parameters
point
SparklinePointInfo<any>
Returns
string | null | undefined
row?
optionalrow?:unknown
The row the sparkline is drawn in, handed to pointColor and tooltipText.
showBaseline?
optionalshowBaseline?:boolean
Draw the zero line when the series crosses it. Default true for bar.
showLast?
optionalshowLast?:boolean
Mark the last reading with a dot. Default true for line/area.
It is the point the reader is actually after — "where did it end up" — and a line without it makes them find the right edge themselves.
tooltip?
optionaltooltip?:boolean
Hover a reading to see its value (a native tooltip). Default off.
tooltipText?
optionaltooltipText?: (point) =>string
The tooltip's text per reading, with the row; turns tooltips on.
Parameters
point
SparklinePointInfo<any>
Returns
string
type?
optionaltype?:SparklineType
valueFormat?
optionalvalueFormat?:NumberFormatOptions
How values print: labels, tooltip, summary ({ style: 'percent' }…).
xKey?
optionalxKey?:string
When the readings are objects, the fields holding x and y (default 'x'
and 'y'). [x, y] pairs need no keys (§E.6 #82).
Inherited from
Omit.xKey
yKey?
optionalyKey?:string
Inherited from
Omit.yKey