mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-21 23:42:03 +00:00
Restrict color scaling to min-max values in spectrum mode (#134)
* Restrict min-max values in spectrum mode
This commit is contained in:
+2
-2
@@ -68,8 +68,8 @@ coreModule.directive('statusHeatmapLegend', function() {
|
||||
if (ctrl.bucketMatrix) {
|
||||
let rangeFrom = ctrl.bucketMatrix.minValue;
|
||||
let rangeTo = ctrl.bucketMatrix.maxValue;
|
||||
let maxValue = panel.color.max || rangeTo;
|
||||
let minValue = panel.color.min || rangeFrom;
|
||||
let maxValue = panel.color.max != null ? panel.color.max : rangeTo;
|
||||
let minValue = panel.color.min != null ? panel.color.min : rangeFrom;
|
||||
|
||||
if (ctrl.bucketMatrix.noDatapoints) {
|
||||
if (!panel.color.max) {
|
||||
|
||||
Reference in New Issue
Block a user