Skip to content

Commit 25e9aef

Browse files
Update src/plugins/data/common/search/aggs/buckets/lib/histogram_calculate_interval.ts
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
1 parent 11f6ec8 commit 25e9aef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/data/common/search/aggs/buckets/lib/histogram_calculate_interval.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ const calculateForGivenInterval = (
7474
7. Find the number of expected buckets that higherPower would create: diff / higherPower
7575
8. There are three possible final intervals, pick the one that's closest to maxBars:
7676
- The lower power of 10
77-
- The higher power of 10, divided by 5
78-
- The higher power of 10, divided by 2
77+
- The lower power of 10, times 2
78+
- The lower power of 10, times 5
7979
**/
8080
const calculateAutoInterval = (
8181
diff: number,

0 commit comments

Comments
 (0)