From ccd97009c98fd305052592163daeb0890ba335c0 Mon Sep 17 00:00:00 2001 From: dvelo <52332868+DeveloLongScript@users.noreply.github.com> Date: Sun, 18 Aug 2024 12:11:12 -0500 Subject: [PATCH] feat: add date in tooltip --- src/components/NewChart.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/NewChart.tsx b/src/components/NewChart.tsx index 1b01976..34597f2 100644 --- a/src/components/NewChart.tsx +++ b/src/components/NewChart.tsx @@ -142,9 +142,18 @@ export function NewChart({ server }: { server: string }) { { + return new Date(value).toLocaleDateString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + }); + }} /> } + cursor={false} + defaultIndex={1} />