Skip to content

Conversation

@Matteo-it
Copy link
Contributor

@Matteo-it Matteo-it commented Nov 24, 2025

Fan vibration monitoring Update UI

@Matteo-it Matteo-it force-pushed the Matteo-it/fan-vibration-monitoring branch from d62f63e to 6f7f0e9 Compare November 24, 2025 15:24
@Matteo-it Matteo-it marked this pull request as ready for review November 25, 2025 11:02
Copy link

@mcmchris mcmchris left a comment

Choose a reason for hiding this comment

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

@Matteo-it I tested the code (I know this is work in progress) but I noticed that the chart was not being cleared and was showing an overlapped messy line chart. With this addition, this is fixed 🙏

canvas.width = currentWidth;
canvas.height = currentHeight;
}

Choose a reason for hiding this comment

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

Suggested change
// Clear the canvas before drawing the new frame!
ctx.clearRect(0, 0, currentWidth, currentHeight);

Choose a reason for hiding this comment

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

I tested the code (I know this is work in progress) but I noticed that the chart was not being cleared and was showing an overlapped messy line chart. With this addition, this is fixed 🙏

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