Skip to content

Commit 8f93b9b

Browse files
committed
set min to lowest value
1 parent 4943e25 commit 8f93b9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/frontend/src/pages/dashboard.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function render(
4444
},
4545
yAxis: {
4646
title: {text: "Seconds"},
47-
min: 0.1,
47+
min: Math.min(...Object.keys(data).flatMap((key) => data[key])),
4848
type: "logarithmic",
4949
},
5050
xAxis: {
@@ -101,7 +101,7 @@ function renderRuntime(element: string, data: [number], versions: [string]) {
101101
},
102102
yAxis: {
103103
title: {text: "Miliseconds"},
104-
min: 0.1,
104+
min: Math.min(...formattedData),
105105
type: "logarithmic",
106106
},
107107
xAxis: {

0 commit comments

Comments
 (0)