createCategoricalColormap
function
- Kind
- function
- Source
- src/colors/colormaps.js:529
Description
Create a categorical palette from a colormap.
Signature
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
colormapInput | string|Function|Object | Colormap reference. | ||
count | number | Number of categories. |
Returns
RGBA colors for categories.
TypeArray<Array<number>>