Adjust number of ticks to have consistent X axes

This commit is contained in:
Sean Kelly 2024-04-28 21:09:35 -07:00
parent 8c610bea49
commit 941e296750

View File

@ -107,7 +107,7 @@ export function ThresholdBarGraph({
size: 0, size: 0,
}, },
xaxis: { xaxis: {
tickAmount: isMobileOnly ? 3 : 4, tickAmount: 3,
tickPlacement: "on", tickPlacement: "on",
labels: { labels: {
offsetX: -18, offsetX: -18,
@ -349,7 +349,7 @@ export function CameraLineGraph({
size: 0, size: 0,
}, },
xaxis: { xaxis: {
tickAmount: isMobileOnly ? 3 : 4, tickAmount: 3,
tickPlacement: "on", tickPlacement: "on",
labels: { labels: {
offsetX: isMobileOnly ? -18 : 0, offsetX: isMobileOnly ? -18 : 0,