@types/d3-scale-chromatic

  • Version 3.0.3
  • Published
  • 27.6 kB
  • No dependencies
  • MIT license

Install

npm i @types/d3-scale-chromatic
yarn add @types/d3-scale-chromatic
pnpm add @types/d3-scale-chromatic

Overview

TypeScript definitions for d3-scale-chromatic

Index

Variables

variable schemeAccent

const schemeAccent: readonly string[];
  • An array of eight categorical colors represented as RGB hexadecimal strings.

variable schemeBlues

const schemeBlues: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “Blues” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeBlues[9] contains an array of nine strings representing the nine colors of the blue sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9.

variable schemeBrBG

const schemeBrBG: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “BrBG” diverging color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeBrBG[9] contains an array of nine strings representing the nine colors of the brown-blue-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.

variable schemeBuGn

const schemeBuGn: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “BuGn” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeBuGn[9] contains an array of nine strings representing the nine colors of the blue-green sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.

variable schemeBuPu

const schemeBuPu: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “BuPu” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeBuPu[9] contains an array of nine strings representing the nine colors of the blue-purple sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.

variable schemeCategory10

const schemeCategory10: readonly string[];
  • An array of ten categorical colors represented as RGB hexadecimal strings.

variable schemeDark2

const schemeDark2: readonly string[];
  • An array of eight categorical colors represented as RGB hexadecimal strings.

variable schemeGnBu

const schemeGnBu: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “GnBu” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeGnBu[9] contains an array of nine strings representing the nine colors of the green-blue sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.

variable schemeGreens

const schemeGreens: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “Greens” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeGreens[9] contains an array of nine strings representing the nine colors of the green sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9.

variable schemeGreys

const schemeGreys: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “Greys” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeGreys[9] contains an array of nine strings representing the nine colors of the grey sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9.

variable schemeOranges

const schemeOranges: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “Oranges” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeOranges[9] contains an array of nine strings representing the nine colors of the orange sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9.

variable schemeOrRd

const schemeOrRd: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “OrRd” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeOrRd[9] contains an array of nine strings representing the nine colors of the orange-red sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.

variable schemePaired

const schemePaired: readonly string[];
  • An array of twelve categorical colors represented as RGB hexadecimal strings.

variable schemePastel1

const schemePastel1: readonly string[];
  • An array of nine categorical colors represented as RGB hexadecimal strings.

variable schemePastel2

const schemePastel2: readonly string[];
  • An array of eight categorical colors represented as RGB hexadecimal strings.

variable schemePiYG

const schemePiYG: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “PiYG” diverging color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemePiYG[9] contains an array of nine strings representing the nine colors of the pink-yellow-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.

variable schemePRGn

const schemePRGn: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “PRGn” diverging color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemePRGn[9] contains an array of nine strings representing the nine colors of the purple-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.

variable schemePuBu

const schemePuBu: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “PuBu” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemePuBu[9] contains an array of nine strings representing the nine colors of the purple-blue sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.

variable schemePuBuGn

const schemePuBuGn: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “PuBuGn” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemePuBuGn[9] contains an array of nine strings representing the nine colors of the purple-blue-green sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.

variable schemePuOr

const schemePuOr: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “PuOr” diverging color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemePuOr[9] contains an array of nine strings representing the nine colors of the purple-orange diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.

variable schemePuRd

const schemePuRd: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “PuRd” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemePuRd[9] contains an array of nine strings representing the nine colors of the purple-red sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.

variable schemePurples

const schemePurples: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “Purples” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemePurples[9] contains an array of nine strings representing the nine colors of the purple sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9.

variable schemeRdBu

const schemeRdBu: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “RdBu” diverging color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeRdBu[9] contains an array of nine strings representing the nine colors of the red-blue diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.

variable schemeRdGy

const schemeRdGy: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “RdGy” diverging color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeRdGy[9] contains an array of nine strings representing the nine colors of the red-grey diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.

variable schemeRdPu

const schemeRdPu: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “RdPu” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeRdPu[9] contains an array of nine strings representing the nine colors of the red-purple sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.

variable schemeRdYlBu

const schemeRdYlBu: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “RdYlBu” diverging color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeRdYlBu[9] contains an array of nine strings representing the nine colors of the red-yellow-blue diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.

variable schemeRdYlGn

const schemeRdYlGn: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “RdYlGn” diverging color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeRdYlGn[9] contains an array of nine strings representing the nine colors of the red-yellow-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.

variable schemeReds

const schemeReds: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “Reds” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeReds[9] contains an array of nine strings representing the nine colors of the red sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9.

variable schemeSet1

const schemeSet1: readonly string[];
  • An array of nine categorical colors represented as RGB hexadecimal strings.

variable schemeSet2

const schemeSet2: readonly string[];
  • An array of eight categorical colors represented as RGB hexadecimal strings.

variable schemeSet3

const schemeSet3: readonly string[];
  • An array of twelve categorical colors represented as RGB hexadecimal strings.

variable schemeSpectral

const schemeSpectral: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “Spectral” diverging color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeSpectral[9] contains an array of nine strings representing the nine colors of the spectral diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.

variable schemeTableau10

const schemeTableau10: readonly string[];
  • An array of ten categorical colors authored by Tableau as part of Tableau 10 represented as RGB hexadecimal strings.

variable schemeYlGn

const schemeYlGn: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “YlGn” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeYlGn[9] contains an array of nine strings representing the nine colors of the yellow-green sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.

variable schemeYlGnBu

const schemeYlGnBu: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “YlGnBu” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeYlGnBu[9] contains an array of nine strings representing the nine colors of the yellow-green-blue sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.

variable schemeYlOrBr

const schemeYlOrBr: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “YlOrBr” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeYlOrBr[9] contains an array of nine strings representing the nine colors of the yellow-orange-brown sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.

variable schemeYlOrRd

const schemeYlOrRd: readonly (readonly string[])[];
  • An array of arrays of hexadecimal color strings from the “YlOrRd” sequential color scheme. The kth element of this array contains the color scheme of size k; for example, d3.schemeYlOrRd[9] contains an array of nine strings representing the nine colors of the yellow-orange-red sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.

Functions

function interpolateBlues

interpolateBlues: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “Blues” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateBrBG

interpolateBrBG: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “BrBG” diverging color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateBuGn

interpolateBuGn: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “BuGn” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateBuPu

interpolateBuPu: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “BuPu” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateCividis

interpolateCividis: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “plasma” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, represented as an RGB string.

    Parameter t

    A number in the interval [0, 1].

function interpolateCool

interpolateCool: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from Niccoli’s perceptual rainbow, represented as an RGB string.

    Parameter t

    A number in the interval [0, 1].

function interpolateCubehelixDefault

interpolateCubehelixDefault: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from Green’s default Cubehelix represented as an RGB string.

    Parameter t

    A number in the interval [0, 1].

function interpolateGnBu

interpolateGnBu: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “GnBu” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateGreens

interpolateGreens: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “Greens” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateGreys

interpolateGreys: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “Greys” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateInferno

interpolateInferno: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “inferno” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, represented as an RGB string.

    Parameter t

    A number in the interval [0, 1].

function interpolateMagma

interpolateMagma: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “magma” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, represented as an RGB string.

    Parameter t

    A number in the interval [0, 1].

function interpolateOranges

interpolateOranges: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “Oranges” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateOrRd

interpolateOrRd: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “OrRd” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolatePiYG

interpolatePiYG: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “PiYG” diverging color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolatePlasma

interpolatePlasma: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “plasma” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, represented as an RGB string.

    Parameter t

    A number in the interval [0, 1].

function interpolatePRGn

interpolatePRGn: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “PRGn” diverging color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolatePuBu

interpolatePuBu: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “PuBu” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolatePuBuGn

interpolatePuBuGn: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “PuBuGn” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolatePuOr

interpolatePuOr: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “PuOr” diverging color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolatePuRd

interpolatePuRd: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “PuRd” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolatePurples

interpolatePurples: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “Purples” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateRainbow

interpolateRainbow: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from d3.interpolateWarm scale from [0.0, 0.5] followed by the d3.interpolateCool scale from [0.5, 1.0], thus implementing the cyclical less-angry rainbow color scheme.

    Parameter t

    A number in the interval [0, 1].

function interpolateRdBu

interpolateRdBu: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “RdBu” diverging color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateRdGy

interpolateRdGy: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “RdGy” diverging color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateRdPu

interpolateRdPu: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “RdPu” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateRdYlBu

interpolateRdYlBu: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “RdYlBu” diverging color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateRdYlGn

interpolateRdYlGn: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “RdYlGn” diverging color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateReds

interpolateReds: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “Reds” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateSinebow

interpolateSinebow: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “sinebow” color scheme by Jim Bumgardner and Charlie Loyd.

    Parameter t

    A number in the interval [0, 1].

function interpolateSpectral

interpolateSpectral: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “Spectral” diverging color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateTurbo

interpolateTurbo: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “turbo” color scheme by Anton Mikhailov.

    Parameter t

    A number in the interval [0, 1].

function interpolateViridis

interpolateViridis: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “viridis” perceptually-uniform color scheme designed by van der Walt, Smith and Firing for matplotlib, represented as an RGB string.

    Parameter t

    A number in the interval [0, 1].

function interpolateWarm

interpolateWarm: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from a 180° rotation of Niccoli’s perceptual rainbow, represented as an RGB string.

    Parameter t

    A number in the interval [0, 1].

function interpolateYlGn

interpolateYlGn: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “YlGn” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateYlGnBu

interpolateYlGnBu: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “YlGnBu” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateYlOrBr

interpolateYlOrBr: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “YlOrBr” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

function interpolateYlOrRd

interpolateYlOrRd: (t: number) => string;
  • Given a number t in the range [0,1], returns the corresponding color from the “YlOrRd” sequential color scheme represented as an RGB string.

    Parameter t

    Number in the range [0, 1].

Package Files (1)

Dependencies (0)

No dependencies.

Dev Dependencies (0)

No dev dependencies.

Peer Dependencies (0)

No peer dependencies.

Badge

To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/d3-scale-chromatic.

  • Markdown
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/d3-scale-chromatic)
  • HTML
    <a href="https://www.jsdocs.io/package/@types/d3-scale-chromatic"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>