Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QuantileScale<DomainValue, RangeValue>

Type parameters

  • DomainValue: QuantitativeValue

  • RangeValue: QuantitativeValue

Hierarchy

  • DomainRangeScale<[DomainValue, DomainValue], RangeValue[], any>
    • QuantileScale

Index

Constructors

constructor

  • new QuantileScale<DomainValue, RangeValue>(): QuantileScale<DomainValue, RangeValue>
  • Type parameters

    • DomainValue: QuantitativeValue

    • RangeValue: QuantitativeValue

    Returns QuantileScale<DomainValue, RangeValue>

Properties

Protected Optional bindDomainValue

bindDomainValue?: string

Protected Optional bindRangeValue

bindRangeValue?: any

Protected Optional domainValue

domainValue?: DomainCreator<[DomainValue, DomainValue]>

Protected Optional nameValue

nameValue?: string

Protected Optional rangeValue

rangeValue?: (args: ScaleCreationContext) => RangeValue[]

Type declaration

    • (args: ScaleCreationContext): RangeValue[]
    • Parameters

      • args: ScaleCreationContext

      Returns RangeValue[]

Protected Optional reverseValue

reverseValue?: boolean

Accessors

Protected bindDomainArray

  • get bindDomainArray(): string[]

Protected defaultDomain

  • get defaultDomain(): Domain

Protected defaultRange

  • get defaultRange(): Range

Methods

build

  • build(arg: ScaleCreationContext): Scales
  • Parameters

    • arg: ScaleCreationContext

    Returns Scales

createScale

  • createScale(args: ScaleCreationContext): {}
  • Parameters

    • args: ScaleCreationContext

    Returns {}

    domain

    • domain(arg?: string | [DomainValue, DomainValue] | DomainCreator<[DomainValue, DomainValue]>): QuantileScale<DomainValue, RangeValue>
    • Sets the domain of the scale

      Parameters

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

        The domain argument

      Returns QuantileScale<DomainValue, RangeValue>

    Protected getDomain

    • getDomain(args: ScaleCreationContext): [DomainValue, DomainValue]
    • Parameters

      • args: ScaleCreationContext

      Returns [DomainValue, DomainValue]

    Protected getRange

    • getRange(args: ScaleCreationContext): RangeValue[]
    • Parameters

      • args: ScaleCreationContext

      Returns RangeValue[]

    handleRangeBind

    • handleRangeBind(): any[]

    name

    • Sets the name of the scale

      Parameters

      • Optional value: string

        The name of the scale

      Returns QuantileScale<DomainValue, RangeValue>

    Protected processDomainValues

    • processDomainValues(values: any[]): [DomainValue, DomainValue]
    • Parameters

      • values: any[]

      Returns [DomainValue, DomainValue]

    range

    reverse

    • reverse(reversed?: boolean): QuantileScale<DomainValue, RangeValue>

    Protected reverseRange

    • reverseRange(range: RangeValue[]): RangeValue[]
    • Parameters

      • range: RangeValue[]

      Returns RangeValue[]