Skip to content

fix: hourly canvas chart date labels#9513

Open
djbarnwal wants to merge 1 commit into
mainfrom
refac/temporal-axis-vega-formatting
Open

fix: hourly canvas chart date labels#9513
djbarnwal wants to merge 1 commit into
mainfrom
refac/temporal-axis-vega-formatting

Conversation

@djbarnwal
Copy link
Copy Markdown
Member

Fixes temporal X-axis labels for canvas charts using hourly grain over wider time ranges.

Previously, hourly axes used %H:%M for every tick. For ranges like 14 days, Vega-Lite often chooses midnight ticks, which made labels repeat as 00:00. This updates hourly temporal axis labeling so midnight ticks render as dates and other ticks still render as times.

  • Adds a temporal axis labelExpr for hourly grain formatting.
  • Shows day-boundary ticks as %b %d.
  • Keeps non-midnight ticks as %H:%M.

Examples

image image image

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@djbarnwal djbarnwal requested a review from AdityaHegde May 29, 2026 16:21
Copy link
Copy Markdown
Collaborator

@nishantmonu51 nishantmonu51 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants