mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Fixes the y axis ticks for chart variants where the maximum transaction count for overall buckets is only 1. Co-authored-by: Walter Rafelsberger <walter@elastic.co>
This commit is contained in:
parent
26b3137981
commit
62fdd053bc
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ export function TransactionDistributionChart({
|
|||
Math.max(
|
||||
...flatten(data.map((d) => d.histogram)).map((d) => d.doc_count)
|
||||
) ?? 0;
|
||||
const yTicks = Math.ceil(Math.log10(yMax));
|
||||
const yTicks = Math.max(1, Math.ceil(Math.log10(yMax)));
|
||||
const yAxisDomain = {
|
||||
min: 0.5,
|
||||
max: Math.pow(10, yTicks),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue