mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-04 03:50:30 +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:
@@ -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