From 12e2c04486f54de6ddd5288571275445881a238b Mon Sep 17 00:00:00 2001 From: Sean Kelly Date: Sun, 22 Sep 2024 14:57:19 -0700 Subject: [PATCH] Decrease number of X ticks on system and camera graphs (#13891) --- web/src/components/graph/CameraGraph.tsx | 2 +- web/src/components/graph/SystemGraph.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/graph/CameraGraph.tsx b/web/src/components/graph/CameraGraph.tsx index f2b327da1..3289887c5 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 098a1957e..572eae5cd 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,