Get unlimited public & private packages + team-based management with npm Teams.Learn more »

ta-infographic-colors

1.0.1 • Public • Published

Divergent Color Scale

Color scale based on Marina Bräm's colors defined for infographics.

Code is based on D3 Category Color Scales and can be used in a similar way.

import {scaleOrdinal} from 'd3-scale';
import {divergentColorScale} from 'ta-infographic-colors';
 
const coloration = scaleOrdinal(divergentColorScale);
 
console.log(`Color of 'Category A' is ${coloration('Category A')}`); // #e23c4e

Keywords

none

Install

npm i ta-infographic-colors

DownloadsWeekly Downloads

5

Version

1.0.1

License

ISC

Last publish

Collaborators

  • avatar