Interface IdentityScale

Hierarchy

Index

Call signatures

Properties

Methods

Call signatures

(value: number): number

Get the range value corresponding to a given domain value.

Parameters

  • value: number

    Domain Value

Returns

number

Properties

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

(): Scale

Returns

Scale

(): Array<any>

Returns

Array<any>

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

(): Scale

Returns

Scale

(): Array<any>

Returns

Array<any>

Methods

public copy(): Scale

Returns

Scale

public invert(value: number): number

Get the domain value corresponding to a given range value.

Parameters

  • value: number

    Range Value

Returns

number

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

Parameters

  • y: any

Returns

Array<any>

public tickFormat(count: number): (n: number) => string

get a formatter for displaying tick values

Parameters

  • count: number

    Aproximate representative values to return

Returns

(n: number) => string

public ticks(count: number): Array<any>

get representative values from the input domain.

Parameters

  • count: number

    Aproximate representative values to return.

Returns

Array<any>