Skip to content

NVR with realtime local object detection for IP cameras

Decrease number of X ticks on system and camera graphs (#13891)

Sean Kelly12e2c04486f5
diff --git a/web/src/components/graph/CameraGraph.tsx b/web/src/components/graph/CameraGraph.tsx
index f2b327da1c..3289887c51 100644
--- a/web/src/components/graph/CameraGraph.tsx
+++ b/web/src/components/graph/CameraGraph.tsx
@@ -86,7 +86,7 @@ export function CameraLineGraph({
size: 0,
},
xaxis: {
- tickAmount: isMobileOnly ? 3 : 4,
+ tickAmount: isMobileOnly ? 2 : 3,
tickPlacement: "on",
labels: {
rotate: 0,
diff --git a/web/src/components/graph/SystemGraph.tsx b/web/src/components/graph/SystemGraph.tsx
index 098a1957e6..572eae5cd5 100644
--- a/web/src/components/graph/SystemGraph.tsx
+++ b/web/src/components/graph/SystemGraph.tsx
@@ -121,7 +121,7 @@ export function ThresholdBarGraph({
size: 0,
},
xaxis: {
- tickAmount: isMobileOnly ? 3 : 4,
+ tickAmount: isMobileOnly ? 2 : 3,
tickPlacement: "on",
labels: {
rotate: 0,