Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DomainRangeScale<string[], [number, number], Dimension>
    • BandScale

Index

Constructors

constructor

  • Returns BandScale

Properties

Protected Optional bindDomainValue

bindDomainValue?: string

Protected Optional bindRangeValue

bindRangeValue?: Dimension

Protected Optional domainValue

domainValue?: DomainCreator<string[]>

Protected Optional nameValue

nameValue?: string

Protected Optional rangeValue

rangeValue?: (args: ScaleCreationContext) => [number, number]

Type declaration

    • (args: ScaleCreationContext): [number, number]
    • Parameters

      • args: ScaleCreationContext

      Returns [number, number]

Protected Optional reverseValue

reverseValue?: boolean

Accessors

Protected bindDomainArray

  • get bindDomainArray(): string[]

Protected defaultDomain

  • get defaultDomain(): Domain

Protected defaultRange

  • get defaultRange(): Range

Methods

align

bandwidthName

build

  • build(arg: ScaleCreationContext): Scales
  • Parameters

    • arg: ScaleCreationContext

    Returns Scales

Protected createScale

  • createScale(args: ScaleCreationContext): Scales

domain

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

    Parameters

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

      The domain argument

    Returns BandScale

Protected getDomain

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

    • args: ScaleCreationContext

    Returns string[]

Protected getRange

  • getRange(args: ScaleCreationContext): [number, number]
  • Parameters

    • args: ScaleCreationContext

    Returns [number, number]

Protected handleRangeBind

  • handleRangeBind(args: ScaleCreationContext, rangeBind: Dimension): [number, number]
  • Parameters

    • args: ScaleCreationContext
    • rangeBind: Dimension

    Returns [number, number]

name

  • Sets the name of the scale

    Parameters

    • Optional value: string

      The name of the scale

    Returns BandScale

padding

paddingInner

paddingOuter

Protected processDomainValues

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

    • values: any[]

    Returns string[]

range

  • range(arg?: Dimension | [number, number] | ((args: ScaleCreationContext) => [number, number])): BandScale
  • Parameters

    • Optional arg: Dimension | [number, number] | ((args: ScaleCreationContext) => [number, number])

    Returns BandScale

reverse

Protected reverseRange

  • reverseRange(range: [number, number]): [number, number]
  • Parameters

    • range: [number, number]

    Returns [number, number]

round