Skip to content

fix: fix uneven grid step across month boundary#563

Merged
kuzmadom merged 1 commit intomainfrom
CHARTS-12838
Apr 20, 2026
Merged

fix: fix uneven grid step across month boundary#563
kuzmadom merged 1 commit intomainfrom
CHARTS-12838

Conversation

@kuzmadom
Copy link
Copy Markdown
Collaborator

When the datetime axis auto-selects a 2-day tick interval, the grid spacing becomes uneven at month boundaries because d3's utcDay.every(2) resets its counter on the 1st of each month. In a 31-day month this produces a 1-day gap between the last day of the month and the 1st of the next.

Fix: use utcDay.filter() with an absolute Unix-day index so the 2-day cadence is preserved across month boundaries.

@gravity-ui-bot
Copy link
Copy Markdown
Contributor

Preview is ready.

@gravity-ui
Copy link
Copy Markdown

gravity-ui bot commented Apr 20, 2026

📖 Docs Preview is ready.

@gravity-ui
Copy link
Copy Markdown

gravity-ui bot commented Apr 20, 2026

Visual Tests Report is ready.
Performance Tests Report is ready.

@kuzmadom kuzmadom marked this pull request as ready for review April 20, 2026 11:00
@kuzmadom kuzmadom requested a review from korvin89 as a code owner April 20, 2026 11:00
@kuzmadom kuzmadom merged commit 01e8ab6 into main Apr 20, 2026
6 checks passed
@kuzmadom kuzmadom deleted the CHARTS-12838 branch April 20, 2026 11:44
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.

3 participants