From 90468c8bf53522f18c571ff82ebf7520c57667ce Mon Sep 17 00:00:00 2001 From: Sean Kelly Date: Sun, 28 Apr 2024 21:55:43 -0700 Subject: [PATCH] Force X axis labels to be rotated correctly (#11148) * Adjust number of ticks to have consistent X axes * Revert "Adjust number of ticks to have consistent X axes" This reverts commit 941e29675043d271d4b40278354c22556483484e. * set rotate instead --- web/src/components/graph/SystemGraph.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/components/graph/SystemGraph.tsx b/web/src/components/graph/SystemGraph.tsx index fe1204b29..81db46e7b 100644 --- a/web/src/components/graph/SystemGraph.tsx +++ b/web/src/components/graph/SystemGraph.tsx @@ -110,6 +110,7 @@ export function ThresholdBarGraph({ tickAmount: isMobileOnly ? 3 : 4, tickPlacement: "on", labels: { + rotate: 0, offsetX: -18, formatter: formatTime, }, @@ -352,6 +353,7 @@ export function CameraLineGraph({ tickAmount: isMobileOnly ? 3 : 4, tickPlacement: "on", labels: { + rotate: 0, offsetX: isMobileOnly ? -18 : 0, formatter: formatTime, },