1.5.6 • Published 7 months ago

colorbrewer v1.5.6

Weekly downloads
13,454
License
-
Repository
github
Last release
7 months ago

colorbrewer

Color specifications and designs developed by Cynthia Brewer (http://colorbrewer2.org/).

This is a shim module of colorbrewer2 by Cythina Brewer for browserify.

It is also a shim for the files provided in d3.js lib.

Access color schemes by name and the number of discrete colors needed, such as colorbrewer.Blues[5]. For a list of color schemes by group, use colorbrewer.schemeGroups. Example:

const colorbrewer = require('colorbrewer');

console.log(colorbrewer.schemeGroups.sequential);
// ["BuGn","BuPu","GnBu",...]

console.log(colorbrewer.Blues[5]);
// ["#eff3ff","#bdd7e7","#6baed6","#3182bd","#08519c"]

Notes:

  • There is a compatibility issue with 1.4.0 so do lock your version to 1.3.0 for now
  • 1.5.0 is using rollup to generate both UMD and ES module so hopefully this will resolve the problems for most of us.

Huge thanks to:

  • Connor Peet - connor4312 - for adding TypeScript support since version 1.4.0
1.5.5

7 months ago

1.5.4

7 months ago

1.5.6

7 months ago

1.5.3

1 year ago

1.5.2

2 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

6 years ago

1.1.0

6 years ago

1.0.0

8 years ago

0.0.2

10 years ago

0.0.1

10 years ago