From 582870c12d9e1ec5b84882bee4db8dcd56b261a7 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 17 Jan 2025 12:03:39 -0800 Subject: update quicklinks and ticks --- app/components/WhoisChart.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/components/WhoisChart.tsx') diff --git a/app/components/WhoisChart.tsx b/app/components/WhoisChart.tsx index a373e98..74bde6d 100644 --- a/app/components/WhoisChart.tsx +++ b/app/components/WhoisChart.tsx @@ -72,14 +72,14 @@ export default function UpdateChart() { dataKey="time" type="number" domain={["dataMin", "dataMax"]} - tickFormatter={(tick) => new Date(tick).toLocaleTimeString()} + tickFormatter={(tick) => ((d) => `${d.toLocaleDateString()} ${d.getHours().toString().padStart(2, '0')}:${d.getMinutes().toString().padStart(2, '0')}`)(new Date(tick))} stroke="rgba(var(--foreground), 0.6)" /> (tick === 0 ? "" : `${tick} hrs`)} /> - {uniqueNames.map((uniqueName, index) => ( + {uniqueNames.map((uniqueName, _index) => (