Skip to content

Fix chart smoothing overshoot#498

Merged
Eldemarkki merged 2 commits intoTestaustime:mainfrom
plsdev89:fix/chart-smoothing-overshoot
Dec 20, 2025
Merged

Fix chart smoothing overshoot#498
Eldemarkki merged 2 commits intoTestaustime:mainfrom
plsdev89:fix/chart-smoothing-overshoot

Conversation

@plsdev89
Copy link
Copy Markdown
Contributor

Closes #497

This fixes the “wonky” Chart.js smoothing where the smoothed line can overshoot above the real max data point.
Change: Use Chart.js monotone cubic interpolation (cubicInterpolationMode: "monotone") when “Smooth charts” is enabled.

Affected charts:
Daily coding time chart
Monthly coding time chart

Screenshots:

  • Before
Screenshot 2025-12-20 at 7 24 34 AM - After Screenshot 2025-12-20 at 7 25 04 AM

@vercel
Copy link
Copy Markdown

vercel bot commented Dec 20, 2025

Deployment failed with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

@Eldemarkki
Copy link
Copy Markdown
Member

I'll merge even though the preview isn't working, it looks like the correct fix.

Just out of curiosity, how did you find out about this issue so fast? Thanks for the contribution!

@Eldemarkki Eldemarkki merged commit b6c5cce into Testaustime:main Dec 20, 2025
4 of 6 checks passed
@plsdev89
Copy link
Copy Markdown
Contributor Author

It's appeared on top this morning.
Screenshot 2025-12-20 at 7 40 10 AM

@Eldemarkki
Copy link
Copy Markdown
Member

Ok, thank you!

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.

Fix chart smoothing

2 participants