@kanunilabs/datagrid-enterprise
@kanunilabs/datagrid-enterprise / renderSparkline
Function: renderSparkline()
Call Signature
renderSparkline(
data,options?):SVGSVGElement|null
Draws one sparkline, or null when the series holds nothing numeric —
the caller then falls through to the grid's ordinary cell text. The DOM
twin of the React Sparkline, from the same geometry.
With labels on a bar sparkline the result is a <span> holding the SVG
and the labels (page text over the drawing — see sparklineLabelSpot);
otherwise it is the SVG itself, as it always was.
Parameters
data
unknown
options?
SparklineRenderOptions & object
Returns
SVGSVGElement | null
Call Signature
renderSparkline(
data,options):SVGSVGElement|HTMLSpanElement|null
Draws one sparkline, or null when the series holds nothing numeric —
the caller then falls through to the grid's ordinary cell text. The DOM
twin of the React Sparkline, from the same geometry.
With labels on a bar sparkline the result is a <span> holding the SVG
and the labels (page text over the drawing — see sparklineLabelSpot);
otherwise it is the SVG itself, as it always was.
Parameters
data
unknown
options
SparklineRenderOptions
Returns
SVGSVGElement | HTMLSpanElement | null