mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 11:36:17 +00:00
Update node-metrics-charts.tsx
This commit is contained in:
@@ -281,7 +281,7 @@ export function NodeMetricsCharts() {
|
|||||||
className="text-foreground"
|
className="text-foreground"
|
||||||
tick={{ fill: "currentColor", fontSize: 12 }}
|
tick={{ fill: "currentColor", fontSize: 12 }}
|
||||||
label={{ value: "CPU %", angle: -90, position: "insideLeft", fill: "currentColor" }}
|
label={{ value: "CPU %", angle: -90, position: "insideLeft", fill: "currentColor" }}
|
||||||
domain={[0, 100]}
|
domain={[0, "dataMax"]}
|
||||||
/>
|
/>
|
||||||
<YAxis
|
<YAxis
|
||||||
yAxisId="right"
|
yAxisId="right"
|
||||||
@@ -290,7 +290,7 @@ export function NodeMetricsCharts() {
|
|||||||
className="text-foreground"
|
className="text-foreground"
|
||||||
tick={{ fill: "currentColor", fontSize: 12 }}
|
tick={{ fill: "currentColor", fontSize: 12 }}
|
||||||
label={{ value: "Load", angle: 90, position: "insideRight", fill: "currentColor" }}
|
label={{ value: "Load", angle: 90, position: "insideRight", fill: "currentColor" }}
|
||||||
domain={[0, (dataMax: number) => Math.max(dataMax, 1)]}
|
domain={[0, "dataMax"]}
|
||||||
/>
|
/>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
contentStyle={{
|
contentStyle={{
|
||||||
|
|||||||
Reference in New Issue
Block a user