Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

feat: show weekday in day-bucket chart tooltips

Blue Mouseb50910f58ddb
diff --git a/web/app/lib/constants/index.ts b/web/app/lib/constants/index.ts
index 084752ed0..a2c07e38e 100644
--- a/web/app/lib/constants/index.ts
+++ b/web/app/lib/constants/index.ts
@@ -303,7 +303,7 @@ export const tbsFormatMapper = {
export const tbsFormatMapperTooltip = {
minute: '%I:%M %p',
hour: '%d %b %I %p',
- day: '%d %b',
+ day: '%a, %d %b',
month: '%b %Y',
year: '%Y',
} as Record<string, string>
@@ -311,7 +311,7 @@ export const tbsFormatMapperTooltip = {
export const tbsFormatMapperTooltip24h = {
minute: '%H:%M',
hour: '%d %b %H:%M',
- day: '%d %b',
+ day: '%a, %d %b',
month: '%b %Y',
year: '%Y',
} as Record<string, string>
diff --git a/web/app/pages/Project/tabs/SEO/seo-chart-options.ts b/web/app/pages/Project/tabs/SEO/seo-chart-options.ts
index fa7bc61ee..597ebd553 100644
--- a/web/app/pages/Project/tabs/SEO/seo-chart-options.ts
+++ b/web/app/pages/Project/tabs/SEO/seo-chart-options.ts
@@ -140,7 +140,7 @@ export function buildMainChartOptions(
contents: (items, _defaultTitleFormat, _defaultValueFormat, color) => {
const tooltipFormatMap: Record<string, string> = {
hour: '%b %d, %Y %H:%M',
- day: '%b %d, %Y',
+ day: '%a, %d %b',
week: 'Week of %b %d, %Y',
month: '%B %Y',
quarter: '%B %Y',