Interface LogScale

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.QuantitiveScale; (): any[]; }

Get or set the scale's input domain.

(): QuantitiveScale

Set the scale's input domain.

Returns

QuantitiveScale

(): Array<any>

Get the scale's input domain.

Returns

Array<any>

public interpolate: { (): D3.Transition.Interpolate; (factory: D3.Transition.Interpolate): D3.Scale.QuantitiveScale; }

get or set the scale's output interpolator.

(): Interpolate

Returns

Interpolate

(): QuantitiveScale

Returns

QuantitiveScale

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

get or set the scale's output range.

(): QuantitiveScale

Set the scale's output range.

Returns

QuantitiveScale

(): Array<any>

Get the scale's output range.

Returns

Array<any>

public rangeRound: (values: any[]) => D3.Scale.QuantitiveScale

Set the scale's output range, and enable rounding.

param

The output range.

Methods

public clamp(clamp: boolean): QuantitiveScale

enable or disable clamping of the output range.

Parameters

  • clamp: boolean

    Enable or disable

Returns

QuantitiveScale

public copy(): QuantitiveScale

create a new scale from an existing scale..

Returns

QuantitiveScale

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 nice(count?: number): QuantitiveScale

extend the scale domain to nice round numbers.

Parameters

  • count?: number optional

    Optional number of ticks to exactly fit the domain

Returns

QuantitiveScale

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>