Skip to content

Commit

Permalink
Fixed chart visualization issues
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Feb 6, 2020
1 parent b9a1a56 commit 2fcd805
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,14 @@ TimeBuckets.prototype.getInterval = function(useNormalizedEsInterval = true) {
function readInterval() {
const interval = self._i;
if (moment.isDuration(interval)) return interval;
return calcAutoIntervalNear(this.uiSettings.get('histogram:barTarget'), Number(duration));
return calcAutoIntervalNear(self.uiSettings.get('histogram:barTarget'), Number(duration));
}

// check to see if the interval should be scaled, and scale it if so
function maybeScaleInterval(interval) {
if (!self.hasBounds()) return interval;

const maxLength = this.uiSettings.get('histogram:maxBars');
const maxLength = self.uiSettings.get('histogram:maxBars');
const approxLen = duration / interval;
let scaled;

Expand Down

0 comments on commit 2fcd805

Please sign in to comment.