Skip to content

fix: resolve d3-raw cumulative x-axis misalignment by snapshotting cycling data source#275

Merged
streamcode9 merged 1 commit into
masterfrom
feature/fix-d3-raw-cumulative-x-axis-misalignment
Feb 27, 2026
Merged

fix: resolve d3-raw cumulative x-axis misalignment by snapshotting cycling data source#275
streamcode9 merged 1 commit into
masterfrom
feature/fix-d3-raw-cumulative-x-axis-misalignment

Conversation

@streamcode9

@streamcode9 streamcode9 commented Feb 27, 2026

Copy link
Copy Markdown
Owner

Snapshot original NY and SF values at initialization instead of using shared-reference originalData. This prevents mutations from shift()/push() in addDataPoint from degrading the values array during long-running cycling, which caused asymmetric value corruptions between series and cumulative temporal drift appearance.

@netlify

netlify Bot commented Feb 27, 2026

Copy link
Copy Markdown

Deploy Preview for endearing-pothos-ca88dc ready!

Name Link
🔨 Latest commit 084df77
🔍 Latest deploy log https://app.netlify.com/projects/endearing-pothos-ca88dc/deploys/69a206989b834300087823d2
😎 Deploy Preview https://deploy-preview-275--endearing-pothos-ca88dc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@streamcode9 streamcode9 changed the title fix: resolve d3-raw cumulative x-axis misalignment by snapshotting cy… fix: resolve d3-raw cumulative x-axis misalignment by snapshotting cycling data source Feb 27, 2026
…cling data source

Snapshot original NY and SF values at initialization instead of using shared-reference originalData.
This prevents mutations from shift()/push() in addDataPoint from degrading the values array during
long-running cycling, which caused asymmetric value corruptions between series and cumulative
temporal drift appearance.
@streamcode9 streamcode9 force-pushed the feature/fix-d3-raw-cumulative-x-axis-misalignment branch from c98cf01 to 084df77 Compare February 27, 2026 21:03
@streamcode9 streamcode9 merged commit 62c08a9 into master Feb 27, 2026
7 checks passed
@streamcode9 streamcode9 deleted the feature/fix-d3-raw-cumulative-x-axis-misalignment branch February 27, 2026 21:07
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.

1 participant