Interface OrdinalScale

Hierarchy

Index

Call signatures

Properties

Methods

Call signatures

(value: any): any

Get the range value corresponding to a given domain value.

Parameters

  • value: any

    Domain Value

Returns

any

Properties

public domain: { (values: any[]): D3.Scale.OrdinalScale; (): any[]; }

Get or set the scale's input domain.

(): OrdinalScale

Set the scale's input domain.

Returns

OrdinalScale

(): Array<any>

Get the scale's input domain.

Returns

Array<any>

public range: { (values: any[]): D3.Scale.OrdinalScale; (): any[]; }

get or set the scale's output range.

(): OrdinalScale

Set the scale's output range.

Returns

OrdinalScale

(): Array<any>

Get the scale's output range.

Returns

Array<any>

Methods

public copy(): OrdinalScale

create a new scale from an existing scale..

Returns

OrdinalScale

optional public invertExtent(y: any): Array<any>

Parameters

  • y: any

Returns

Array<any>

public rangeBand(): number

Returns

number

public rangeBands(interval: Array<any>, padding?: number, outerPadding?: number): OrdinalScale

Parameters

  • interval: Array<any>
  • padding?: number optional
  • outerPadding?: number optional

Returns

OrdinalScale

public rangeExtent(): Array<any>

Returns

Array<any>

public rangePoints(interval: Array<any>, padding?: number): OrdinalScale

Parameters

  • interval: Array<any>
  • padding?: number optional

Returns

OrdinalScale

public rangeRoundBands(interval: Array<any>, padding?: number, outerPadding?: number): OrdinalScale

Parameters

  • interval: Array<any>
  • padding?: number optional
  • outerPadding?: number optional

Returns

OrdinalScale