colorbrewer
A shim module of colorbrewer2 by Cythina Brewer for browserify
Last updated 8 months ago by saikocat .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install colorbrewer 
SYNC missed versions from official npm registry.

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:

  • 1.6.1 is a major update that enable TypeScript to work correctly, and modernize the rollup build process.
  • 1.5.0 is using rollup to generate both UMD and ES module so hopefully this will resolve the problems for most of us.

Versions to avoid:

  • 1.6.0 due to missing index.es.js in packaging.
  • There is a compatibility issue with 1.4.0 so do lock your version to 1.3.0 for now.

Huge thanks to:

  • Brian Moran - moranbw - for TypeScript import and build process enhancement since version 1.6.1
  • Connor Peet - connor4312 - for adding initial support for TypeScript since version 1.4.0

Current Tags

  • 1.7.0                                ...           latest (8 months ago)

20 Versions

  • 1.7.0                                ...           8 months ago
  • 1.6.2                                ...           9 months ago
  • 1.6.1                                ...           2 years ago
  • 1.6.0 [deprecated]           ...           2 years ago
  • 1.5.9                                ...           2 years ago
  • 1.5.8 [deprecated]           ...           2 years ago
  • 1.5.7 [deprecated]           ...           2 years ago
  • 1.5.6                                ...           3 years ago
  • 1.5.5                                ...           3 years ago
  • 1.5.4                                ...           3 years ago
  • 1.5.3                                ...           4 years ago
  • 1.5.2                                ...           5 years ago
  • 1.5.1                                ...           6 years ago
  • 1.5.0                                ...           6 years ago
  • 1.4.0                                ...           6 years ago
  • 1.3.0                                ...           8 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.0                                ...           11 years ago
  • 0.0.2                                ...           12 years ago
  • 0.0.1                                ...           12 years ago
Maintainers (1)
Downloads
Total 81
Today 0
This Week 0
This Month 66
Last Day 0
Last Week 22
Last Month 4
Dependencies (0)
None
Dev Dependencies (4)

© 2010 - cnpmjs.org x YWFE | Home | YWFE