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.

GitHub bi-colour timeline graphs are back.

2 pointsby damncabbageover 12 years ago

1 comment

damncabbageover 12 years ago
... But appears not to have rolled out for most people (presumably the old setup stuck until the render cache clears).<p>By way of explanation:<p><pre><code> &#60;canvas data-color-all="#e0e0e0" data-color-owner="#4183C4" data-source="/ab9/simple_authentication_starter/graphs/owner_participation"&#62; &#60;/canvas&#62; </code></pre> Each timeline is drawn in a &#60;canvas&#62; element. Each element uses the data-src to grab a JSON blob with "all" and "owner" keys, and uses the <i>color-owner</i> and <i>color-all</i> attributes to figure out which colours to use when drawing them. Kinda neat.<p>Not a peep from GitHub about this officially, unfortunately, regarding both it going away or coming back.