Components Interactions Examples Tutorials API FAQ
Options
Menu

Hierarchy

  • Scale<string, string>
    • Color

Index

Constructors

constructor

  • new Color(scaleType?: string): Color
  • A Color Scale maps string values to color hex values expressed as a string.

    constructor

    Parameters

    • Optional scaleType: string

    Returns Color

Properties

Private _d3Scale

_d3Scale: any

Static Private _LOOP_LIGHTEN_FACTOR

_LOOP_LIGHTEN_FACTOR: any

Static Private _MAXIMUM_COLORS_FROM_CSS

_MAXIMUM_COLORS_FROM_CSS: any

Static Private _plottableColorCache

_plottableColorCache: any

Methods

Protected _autoDomainIfAutomaticMode

  • _autoDomainIfAutomaticMode(): void

Protected _backingScaleDomain

  • _backingScaleDomain(): string[]
  • _backingScaleDomain(values: string[])

Protected _dispatchUpdate

  • _dispatchUpdate(): void

Protected _getAllIncludedValues

  • _getAllIncludedValues(): string[]

Protected _getDomain

  • _getDomain(): string[]

Protected _getExtent

  • _getExtent(): string[]

Protected _getRange

  • _getRange(): string[]

Protected _setDomain

  • _setDomain(values: string[]): void

Protected _setRange

  • _setRange(values: string[]): void

addIncludedValuesProvider

autoDomain

  • autoDomain()

domain

  • domain(): string[]
  • domain(values: string[])

extentOfValues

  • extentOfValues(values: string[]): string[]

offUpdate

onUpdate

range

  • range(): string[]
  • range(values: string[])

removeIncludedValuesProvider

scale

  • scale(value: string): string
  • Returns the color-string corresponding to a given string. If there are not enough colors in the range(), a lightened version of an existing color will be used.

    Parameters

    • value: string

    Returns string

Static Private _getPlottableColors

  • _getPlottableColors(): any

Static invalidateColorCache

  • invalidateColorCache(): void

Generated using TypeDoc