Class: Median

jheatmap.decorators.Median

new Median

Median decorator

Parameters:
Name Type Argument Default Description
p.maxValue number <optional>
3 Absolute maximum and minimum of the median
p.nullColor Array <optional>
[255,255,255] NaN values color [r,g,b]
Source:
  • ../js/jheatmap-1.0.0.js, line 1054
Example
new jheatmap.decorators.Median({ maxValue: 4 });

Methods

toColor

Convert a value to a color

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