Skip to content

@graphty/graphty-element / catalog / scalesForDomain

Function: scalesForDomain() ​

scalesForDomain(domainKind): readonly ScaleDescriptor[]

Defined in: graphty-element/src/catalog/scales.ts:160

The scales that suit a kind of domain, which is what a binding editor offers once it knows whether the chosen attribute holds measurements or names.

Parameters ​

domainKind ​

"boolean" | "categorical" | "numeric"

The kind of values the attribute holds.

Returns ​

readonly ScaleDescriptor[]

Every scale that accepts that kind of domain, in catalogue order.