TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Smoothie Charts

113 pointsby DanielHover 14 years ago

5 comments

chimeover 14 years ago
I see that he is redrawing the whole chart on each refresh: <a href="http://github.com/joewalnes/smoothie/raw/master/smoothie.js" rel="nofollow">http://github.com/joewalnes/smoothie/raw/master/smoothie.js</a> - .save() and .restore()<p>One thing he can try to get speed improvements is to absolutely position a double-width canvas tag in an iframe and move the entire canvas tag one pixel to left on each refresh. Then he can just paint the new data on the right-most visible pixel. One canvas has moved -width px, just do a .save() / .restore() and reset it to left: 0px.<p>I'm not certain if it will help for sure but I have an inkling it might.
评论 #1626661 未加载
Etikoover 14 years ago
No love for Firefox? :(
评论 #1626633 未加载
aw3c2over 14 years ago
Eats 100% CPU. Definitely needs a frame limiter (or whatever else is needed).
评论 #1626926 未加载
maggitover 14 years ago
It's also working near perfectly in Opera 10.61. (There is a bug initially, when the lines should start in the middle of the chart, rather than on the left)
nphaseover 14 years ago
No love for the iPad either. was looking forward to making a streaming dashboard with this