scaleThresholdDomain = {
let scaleThresholdDomain;
console.log("");
if (true) {
let stepRight = (_extent[1] - threshold) / Math.floor(steps / 2);
let thresholdsRight = d3.range(threshold, _extent[1], stepRight);
console.log(1);
console.log(_extent);
let stepLeft = Math.abs(threshold - _extent[0]) / Math.floor(steps / 2);
let thresholdsLeft = d3.range(
_extent[0] + stepLeft,
threshold + stepLeft,
stepLeft
);
scaleThresholdDomain = _.uniq([...thresholdsLeft, ...thresholdsRight]);
console.log(thresholdsLeft, thresholdsRight);
} else {
console.log(2);
let step = Math.abs(_extent[1] - _extent[0]) / steps;
let thresholds = d3.range(_extent[0], _extent[1] + step, step);
let innerTresholds = _.drop(_.dropRight(thresholds));
scaleThresholdDomain = innerTresholds;
console.log(scaleThresholdDomain);
}
return scaleThresholdDomain;
}