mirror of
https://github.com/Comfy-Org/download-data.git
synced 2026-11-05 00:17:20 +00:00
[GH-ISSUE #9] Bug: Backfill shading missing on 1 week / 1 month when event start is outside visible domain #7
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/download-data#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @benceruleanlu on GitHub (Nov 9, 2025).
Original GitHub issue: https://github.com/Comfy-Org/download-data/issues/9
Summary
Backfill overlay (ReferenceArea) does not render on short ranges (1 week / 1 month) when a backfill event starts before the visible window. It shows on 3 months / all time where the event interval is fully within the X domain.
Cause
datestrings;ReferenceArearequiresx1/x2values to be present in the domain.end_date >= thresholdsostart_datecan be before the window. On 7/30-day windows,e.startDateoften isn’t inchartData.map(d => d.date), so the overlay doesn’t render.Evidence
<ReferenceArea x1={e.startDate} x2={e.endDate} ... />WHERE end_date >= ?)Proposed Fix
visibleStart = chartData[0].date,visibleEnd = chartData[chartData.length - 1].datex1 = max(e.startDate, visibleStart),x2 = min(e.endDate, visibleEnd)x1 <= x2.type="number") so off-domain x1/x2 are clipped properly by the scale.Acceptance Criteria
Notes
@benceruleanlu commented on GitHub (Nov 10, 2025):
Fixed in
561cc12254