@graphty/graphty-element / session / ColumnHistogram
Type Alias: ColumnHistogram ​
ColumnHistogram =
Histogram&object| {kind:"categorical";otherCount:number;values: readonlyobject[]; }
Defined in: graphty-element/src/session/types.ts:581
How one data column's values are distributed: what session.data.histogram(column) returns.
A column that measures amounts (measurement: "quantitative") is binned like a run's field, with kind: "numeric" beside the Histogram fields. Any other column is counted by value, with kind: "categorical".
OPEN UNION: kinds may be added in a minor release; handle unknown kinds.
Union Members ​
Histogram & object
Type Literal ​
{ kind: "categorical"; otherCount: number; values: readonly object[]; }
kind ​
readonlykind:"categorical"
otherCount ​
readonlyotherCount:number
How many elements carry a value not in values; 0 when every value made the list.
values ​
readonlyvalues: readonlyobject[]
The commonest values, most elements first; a tie keeps the order the values were first seen in. At most bins of them (20 unless asked).