Skip to content

Commit

Permalink
Update src/plugins/data/common/search/aggs/buckets/lib/histogram_calc…
Browse files Browse the repository at this point in the history
…ulate_interval.ts

Co-authored-by: Wylie Conlon <[email protected]>
  • Loading branch information
alexwizp and wylieconlon authored Sep 1, 2020
1 parent 11f6ec8 commit 25e9aef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ const calculateForGivenInterval = (
7. Find the number of expected buckets that higherPower would create: diff / higherPower
8. There are three possible final intervals, pick the one that's closest to maxBars:
- The lower power of 10
- The higher power of 10, divided by 5
- The higher power of 10, divided by 2
- The lower power of 10, times 2
- The lower power of 10, times 5
**/
const calculateAutoInterval = (
diff: number,
Expand Down

0 comments on commit 25e9aef

Please sign in to comment.