@kanunilabs/datagrid-enterprise
@kanunilabs/datagrid-enterprise / ChartRenderContext
Interface: ChartRenderContext
Properties
blankLabel
blankLabel:
string
What a blank category is called, in the grid's language.
colors
colors:
string[]
Per-series colours, already resolved — index-aligned with model.series.
hidden
hidden:
ReadonlySet<number>
Series the user hid via the legend; renderers must skip these.
locale
locale:
string
BCP-47 tag for number formatting.
onCategoryClick?
optionalonCategoryClick?: (category,index) =>void
Set when cross-filtering is enabled; a click on a mark calls it.
Parameters
category
string
index
number
Returns
void
rightAxis
rightAxis:
ReadonlySet<number>
Series indices that belong on a SECOND, right-hand value axis.
Revenue summed over a million rows is ~2×10⁸; units over the same rows ~2×10⁶ — on one axis the second series is a flat line on the baseline. The panel decides the split; renderers just honour it.
size
size:
object
Canvas size in px — REQUIRED here, unlike React's nullable one.
React's null meant "let recharts' ResponsiveContainer measure". These renderers have no container to defer to: the panel measures its canvas and re-renders on resize, so a renderer always knows its box.
height
height:
number
width
width:
number
Methods
formatValue()
formatValue(
value):string
Parameters
value
number
Returns
string