Saturation
Saturation end
Lightness
Lightness end
Midpoint
Steepness
Skewness
Weight strength
Offset
["#c63b3b", "#3dc8c8", "#87cb43", "#8b49cf", "#d3b051", "#5779d6", "#5dd97f", "#dc64bc"]
Install
Install from NPM
npm install @mapequation/c3
Source code is available on GitHub.
Features
- Unlimited colorsGenerate as many colors you want
- Any color schemeWe generate color stops on the interval [0, 1]. Perfect to use with d3.
- DeterministicYou always get the same colors for the same requested number of colors.
- ConsistentIf you increase the number of colors, it doesn't change the list of colors you already have.
- FastThe complexity is O(n log(n)) for n colors.
Authors
Daniel Edler, Anton Eriksson