Date formatting in Product analytics dashboards
Problem
When viewing the Audience or Behavior dashboards, we do not format dates compliant with the Pajamas Date and time guidelines.
Formatting suggestions |
---|
Proposal
-
TheLine and Column chart tooltip number formating was completed in Format large values with delimiters in chart vi... (!141729 - merged)Counts
value in the tooltip on the line chart should use language-sensitive number formatting. See related issue: VSA: should use language-sensitive number forma... (#420823 - closed) - The date format in the tooltip on the line chart should use the absolute, localized format. We should update
2024-01-29T00:00:00.000 (Time)
toJan 29, 2024
- The x axis label for the line charts should say "Date", not "Time"
Implementation plan
- Modify
formatVisualizationValue
to format dates instead of directly returning the value.- Use
formatDate
utility - This will format date values, e.g. in tables, line charts, column charts
- Use
- Modify visualuzation charts to use tooltip title slot to allow formatting dates in tooltips, e.g.:
<template #tooltip-title="{ title, params }"> ...
- Modify all built-in visualizations axis names from
Time
toDate
where appropriate (e.g. granularity isday
)
Edited by Elwyn Benson