You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Time chart x-axis drops the date after the first tick on multi-day ranges below daily granularity #3867
On a time chart with sub-day granularity over a range longer than a day, only the first x-axis tick shows a date. Every later tick shows only the time of day. For example, at "Last 7 days" with 12 hour granularity, the ticks read Nov 23 12:00:00 AM, 12:00:00 PM, 12:00:00 AM, 12:00:00 PM, … so you can't tell which day a point belongs to without hovering.
#3779 fixed this at daily granularity or coarser, and its description lists this sub-day, multi-day case as a separate follow-up.
Expected
When the chart's range spans more than a day, every tick shows the date and time (the existing short format, e.g. Nov 24 12:00PM). Charts whose range fits in one day keep time-only ticks after the first.
How to reproduce
Open the chart explorer on play.hyperdx.io (or yarn app:dev:local with the demo server).
Choose a count of events, range "Last 7 days", granularity "12 hour" (or let auto pick a sub-day bucket).
Look at the x-axis labels after the first tick.
Environment
Seen on @hyperdx/app@2.47.0. Still present on main (getXAxisTickDateFormat returns time for every tick after the first below daily granularity).
Activity
fix(app): show dates on x-axis ticks over multi-day ranges below dail…