From 48f465b00d72e22f299ae5d7151bfd0a24ef3135 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Thu, 2 Jul 2026 21:53:07 +0300 Subject: [PATCH] Fix chart labels not rendering correctly E.g. "0.5" as a label when it should be dates --- app/components/Chart.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/Chart.tsx b/app/components/Chart.tsx index cd799060d..de156b93c 100644 --- a/app/components/Chart.tsx +++ b/app/components/Chart.tsx @@ -244,7 +244,9 @@ export default function Chart({ x: { ...scaleDefaults, max: xAbilityLimit, - type: "linear", + // category (not linear) for date axes so ticks only land on real + // data indices instead of fractional positions like 0.5 + type: xAxis === "localTime" ? "category" : "linear", ticks: { ...scaleDefaults.ticks, maxRotation: 0,