fix: add condition for noDatapoints state

- see #134
This commit is contained in:
Ivan Mikheykin
2020-10-10 13:30:27 +03:00
parent 3b0d119113
commit 7cc09175f0
6 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -462,8 +462,8 @@ System.register(["lodash", "jquery", "moment", "app/core/utils/kbn", "app/core/c
value: function addStatusmap() {
var _this = this;
var maxValue = this.panel.color.max || this.bucketMatrix.maxValue;
var minValue = this.panel.color.min || this.bucketMatrix.minValue;
var maxValue = this.panel.color.max != null ? this.panel.color.max : this.bucketMatrix.maxValue;
var minValue = this.panel.color.min != null ? this.panel.color.min : this.bucketMatrix.minValue;
if (this.panel.color.mode !== 'discrete') {
this.colorScale = this.getColorScale(maxValue, minValue);