Update tooltip date formats.

This commit is contained in:
Mike Cao 2023-03-16 15:56:05 -07:00
parent afec08b355
commit c62e2e9cc7
5 changed files with 60 additions and 42 deletions

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;
}, {});