Class: CategoricalRandom

jheatmap.decorators.CategoricalRandom

new CategoricalRandom

Random Categorical decorator, randomly generates colors for a category.

Parameters:
Name Type Argument Default Description
p.unknown string <optional>
"#FFFFFF" Color for null or undefined values
Author:
  • Ted Liefeld
Source:
  • ../js/jheatmap-1.0.0.js, line 838
Example
new jheatmap.decorators.CategoricalRandom();

Methods

toColor

Convert a value to a color

Parameters:
Name Type Description
value string The cell value
Source:
  • ../js/jheatmap-1.0.0.js, line 849
Returns:
The corresponding color string definition.
Type
string