fix: make it work in 6.7 and 7.0+

This commit is contained in:
Ivan Mikheykin
2020-05-23 13:11:59 +03:00
parent b33248c664
commit 6b6219c1a9
7 changed files with 41 additions and 19 deletions
+7 -8
View File
@@ -379,15 +379,14 @@ System.register(["lodash", "jquery", "d3", "./libs/d3-scale-chromatic/index", "a
} else {
rangeFrom = 0;
}
}
} // console.log("legend state:", {
// rangeFrom: rangeFrom,
// rangeTo: rangeTo,
// maxValue: maxValue,
// minValue: minValue,
// colorMode: panel.color.mode
// });
console.log("legent state:", {
rangeFrom: rangeFrom,
rangeTo: rangeTo,
maxValue: maxValue,
minValue: minValue,
colorMode: panel.color.mode
});
if (panel.color.mode === 'spectrum') {
var colorScheme = _.find(ctrl.colorSchemes, {