This commit is contained in:
Henry Dollman
2024-07-12 16:45:44 -04:00
parent 2436e04705
commit e7ff1172d5
12 changed files with 157 additions and 129 deletions

View File

@@ -36,10 +36,7 @@ export default function ({
accessibilityLayer
data={chartData}
margin={{
left: 0,
right: 0,
top: 0,
bottom: 0,
top: 10,
}}
>
<CartesianGrid vertical={false} />
@@ -48,6 +45,7 @@ export default function ({
domain={[0, totalMem]}
tickCount={9}
tickLine={false}
allowDecimals={false}
axisLine={false}
tickFormatter={(v) => `${v} GiB`}
/>
@@ -62,11 +60,13 @@ export default function ({
/>
<ChartTooltip
cursor={false}
content={<ChartTooltipContent labelFormatter={formatShortDate} indicator="line" />}
content={
<ChartTooltipContent unit=" GiB" labelFormatter={formatShortDate} indicator="line" />
}
/>
<Area
dataKey="memUsed"
type="natural"
type="bump"
fill="var(--color-memUsed)"
fillOpacity={0.4}
stroke="var(--color-memUsed)"