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 941e296750.

* set rotate instead
This commit is contained in:
Sean Kelly 2024-04-28 21:55:43 -07:00 committed by GitHub
parent 1c90f62ea5
commit 90468c8bf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,6 +110,7 @@ export function ThresholdBarGraph({
tickAmount: isMobileOnly ? 3 : 4, tickAmount: isMobileOnly ? 3 : 4,
tickPlacement: "on", tickPlacement: "on",
labels: { labels: {
rotate: 0,
offsetX: -18, offsetX: -18,
formatter: formatTime, formatter: formatTime,
}, },
@ -352,6 +353,7 @@ export function CameraLineGraph({
tickAmount: isMobileOnly ? 3 : 4, tickAmount: isMobileOnly ? 3 : 4,
tickPlacement: "on", tickPlacement: "on",
labels: { labels: {
rotate: 0,
offsetX: isMobileOnly ? -18 : 0, offsetX: isMobileOnly ? -18 : 0,
formatter: formatTime, formatter: formatTime,
}, },