feat(webui): improve compression graph readability

The y-axis for the compression ratio graph has been adjusted to start at 0.95 and end slightly above the maximum data point. This makes changes in the compression ratio more visible, as suggested in the user feedback.
This commit is contained in:
Gareth George
2025-06-28 12:09:30 -07:00
parent bd96029551
commit 5ece55eea3
+6 -1
View File
@@ -113,7 +113,12 @@ const StatsPanel = ({ selector }: { selector: OpSelector }) => {
domain={["dataMin", "dataMax"]}
tickFormatter={(v) => formatDate(v as number)}
/>
<YAxis yAxisId="left" type="number" dataKey="compressionRatio" />
<YAxis
yAxisId="left"
type="number"
dataKey="compressionRatio"
domain={[0.95, "dataMax + 0.05"]}
/>
<Tooltip labelFormatter={(v) => formatDate(v as number)} />
<Legend />
<Line