diff --git a/src/color_mode_discrete.js b/src/color_mode_discrete.js index e64cb31..aae392a 100644 --- a/src/color_mode_discrete.js +++ b/src/color_mode_discrete.js @@ -16,7 +16,10 @@ export class ColorModeDiscrete { for (let i = 0; i < thresholds.length; i++) { for (let j = 0; j < values.length; j++) { if (values[j] == thresholds[i].value) { - tooltips.push(thresholds[i].tooltip); + tooltips.push({ + "tooltip": thresholds[i].tooltip, + "color": thresholds[i].color + }); } } } diff --git a/src/css/status-heatmap.scss b/src/css/status-heatmap.scss index ddbf427..575248f 100644 --- a/src/css/status-heatmap.scss +++ b/src/css/status-heatmap.scss @@ -75,6 +75,10 @@ $font-size-sm: 12px !default; padding-left: 10px; } + .status-heatmap-color-legend { + margin-top: 4px; + } + .status-heatmap-legend-values { display: inline-block; } diff --git a/src/options_editor.html b/src/options_editor.html index 20bff1a..27a34ef 100644 --- a/src/options_editor.html +++ b/src/options_editor.html @@ -17,6 +17,9 @@