Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OrdinalScale<RangeType>

Type parameters

  • RangeType

Hierarchy

  • DomainScale<string[]>
    • OrdinalScale

Index

Constructors

constructor

  • Type parameters

    • RangeType

    Returns OrdinalScale<RangeType>

Properties

Protected Optional bindDomainValue

bindDomainValue?: string

Protected Optional domainValue

domainValue?: DomainCreator<string[]>

Protected Optional nameValue

nameValue?: string

Accessors

Protected bindDomainArray

  • get bindDomainArray(): string[]

Protected defaultDomain

  • get defaultDomain(): Domain

Methods

build

  • build(arg: ScaleCreationContext): Scales
  • Parameters

    • arg: ScaleCreationContext

    Returns Scales

colorScheme

Protected createScale

  • createScale(args: ScaleCreationContext): Scales

domain

  • domain(arg?: string | string[] | DomainCreator<string[]>): OrdinalScale<RangeType>
  • Sets the domain of the scale

    Parameters

    • Optional arg: string | string[] | DomainCreator<string[]>

      The domain argument

    Returns OrdinalScale<RangeType>

Protected getDomain

  • getDomain(args: ScaleCreationContext): string[]
  • Parameters

    • args: ScaleCreationContext

    Returns string[]

Protected getRange

  • getRange(): any

name

  • Sets the name of the scale

    Parameters

    • Optional value: string

      The name of the scale

    Returns OrdinalScale<RangeType>

Protected processDomainValues

  • processDomainValues(values: any[]): string[]
  • Parameters

    • values: any[]

    Returns string[]

range