mirror of
https://github.com/fankes/beszel.git
synced 2025-10-20 18:29:29 +08:00
improve y axis annoyances on charts
This commit is contained in:
@@ -38,6 +38,7 @@ export default function SwapChart({
|
||||
<AreaChart accessibilityLayer data={systemData} margin={{ top: 10 }}>
|
||||
<CartesianGrid vertical={false} />
|
||||
<YAxis
|
||||
className="tracking-tighter"
|
||||
domain={[0, () => toFixedWithoutTrailingZeros(systemData.at(-1)?.stats.s ?? 0.04, 2)]}
|
||||
width={yAxisWidth}
|
||||
tickLine={false}
|
||||
|
Reference in New Issue
Block a user