Class: Constant

jheatmap.decorators.Constant

new Constant

Constant decorator. This decorator returns always the same color

Parameters:
Name Type Argument Default Description
p.color string <optional>
"white" Color for all the values
Source:
  • ../js/jheatmap-1.0.0.js, line 871
Example
new jheatmap.decorators.Constant({ color: "red" });

Methods

toColor

Convert a value to a color

Source:
  • ../js/jheatmap-1.0.0.js, line 880