Update tooltip date formats.

This commit is contained in:
Mike Cao committed 2023-03-16 15:56:05 -07:00
1 parent afec08b355
commit c62e2e9cc7
5 files changed
+60 -42

No files matched your search

+2 -2
View File
@@ -33,12 +33,12 @@ export default function EventsChart({ websiteId, className, token }) {
if (!data) return [];
if (isLoading) return data;
const map = data.reduce((obj, { x, t, y }) => {
const map = data.reduce((obj, { x, y }) => {
if (!obj[x]) {
obj[x] = [];
}
obj[x].push({ t, y });
obj[x].push({ x, y });
return obj;
}, {});