Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScaleMappingFunction

a mapping function based on a d3 scale (linear, sqrt, log)

Hierarchy

  • ScaleMappingFunction

Implements

Index

Constructors

Accessors

  • get domain(): number[]
  • set domain(domain: number[]): void
  • get range(): number[]
  • set range(range: number[]): void
  • get scaleType(): string

Methods

  • apply(v: number): number
  • getRange(format: (v: number) => string): [string, string]
  • invert(r: number): number
  • toJSON(): { domain: number[]; range: number[]; type: string }