Skip to content

@graphty/graphty-element / session / BindingPreviewBin

Interface: BindingPreviewBin ​

Defined in: graphty-element/src/session/styles/encoding.ts:2234

One bin of a BindingPreview: a stretch of the scale, or one category.

Since ​

3.26.0

Properties ​

count ​

readonly count: number

Defined in: graphty-element/src/session/styles/encoding.ts:2242

How many elements fall in it.


from ​

readonly from: number | null

Defined in: graphty-element/src/session/styles/encoding.ts:2236

The lower edge, in the data's units; null for a category.


paints ​

readonly paints: EncodedValue | null

Defined in: graphty-element/src/session/styles/encoding.ts:2247

What the binding paints there: at the middle of the stretch, or for the category. Null when it paints nothing (a hidden value).


to ​

readonly to: number | null

Defined in: graphty-element/src/session/styles/encoding.ts:2238

The upper edge, in the data's units; null for a category.


value? ​

readonly optional value?: unknown

Defined in: graphty-element/src/session/styles/encoding.ts:2240

The category, as the data spells it; absent for a stretch of a numeric scale.