# d3-scale-chromatic

> Sequential, diverging and categorical color schemes.

Latest version **3.1.0** (published 2024-03-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install d3-scale-chromatic
pnpm add d3-scale-chromatic
yarn add d3-scale-chromatic
bun add d3-scale-chromatic
```

## Health

**Score 28/100 (F)** — status: abandoned.

Positive: has types package; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2024-03-12 |
| First published | 2016-06-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | separate (@types/d3-scale-chromatic) |
| Module format | ESM + CommonJS |
| Node | >=12 |
| Dependencies | 2 |
| Unpacked size | 73.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 819 |
| Author | Mike Bostock |
| Maintainers | mbostock, recifs |
| Keywords | d3, d3-module, color, scale, sequential, colorbrewer |

## Links

- npm: https://www.npmjs.com/package/d3-scale-chromatic
- Repository: https://github.com/d3/d3-scale-chromatic
- Homepage: https://d3js.org/d3-scale-chromatic/
- Issues: https://github.com/d3/d3-scale-chromatic/issues
- npm.io page: https://npm.io/package/d3-scale-chromatic

## Dependencies (2)

- [d3-color](https://npm.io/package/d3-color.md) 1 - 3
- [d3-interpolate](https://npm.io/package/d3-interpolate.md) 1 - 3

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 3.1.0 (latest) — 2024-03-12
- 2.0.0-rc.1 (next) — 2020-07-27
- 3.0.0 — 2021-06-05
- 2.0.0 — 2020-08-23
- 1.5.0 — 2019-08-21
- 1.4.0 — 2019-08-10
- 1.3.3 — 2018-08-24
- 1.3.2 — 2018-08-24
- 1.3.1 — 2018-08-24
- 1.3.0 — 2018-05-11
- 1.2.0 — 2018-01-28
- 1.1.1 — 2017-02-15
- 1.1.0 — 2016-11-03
- 1.0.2 — 2016-08-03
- 1.0.1 — 2016-07-11
- … 5 more at https://npm.io/package/d3-scale-chromatic/versions

## README

# d3-scale-chromatic

<a href="https://d3js.org"><img src="https://github.com/d3/d3/raw/main/docs/public/logo.svg" width="256" height="256"></a>

This module provides sequential, diverging and categorical color schemes designed to work with [d3-scale](https://github.com/d3/d3-scale)’s scaleOrdinal and scaleSequential. Most of these schemes are derived from Cynthia A. Brewer’s [ColorBrewer](http://colorbrewer2.org). Since ColorBrewer publishes only discrete color schemes, the sequential and diverging scales are interpolated using [uniform B-splines](https://observablehq.com/@d3/colorbrewer-splines).

## Resources

- [Documentation](https://d3js.org/d3-scale-chromatic)
- [Examples](https://observablehq.com/collection/@d3/d3-scale-chromatic)
- [Releases](https://github.com/d3/d3-scale-chromatic/releases)
- [Getting help](https://d3js.org/community)

---
_Source: https://npm.io/package/d3-scale-chromatic · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
