mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-10-25 16:19:14 +00:00
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:
1 parent
37f0bbe63e
commit
90b77db05a
1 file changed
+6
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user