🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Improve chart tooltip formatting for day bucket
Andrii Andrushchyshyn9c3087805ea0
diff --git a/client/src/app/[site]/main/components/MainSection/Chart.tsx b/client/src/app/[site]/main/components/MainSection/Chart.tsxindex 3e3d8ac41..ce937b904 100644--- a/client/src/app/[site]/main/components/MainSection/Chart.tsx+++ b/client/src/app/[site]/main/components/MainSection/Chart.tsx@@ -384,5 +384,10 @@ const formatDateTime = (dt: DateTime, bucket: TimeBucket) => {if (showMinutes && is24Hour) {options.minute = 'numeric';}+ if (bucket === "day") {+ options.minute = undefined;+ options.hour = undefined;+ options.month = "long";+ }return new Intl.DateTimeFormat(userLocale, options).format(dt.toJSDate());};