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.

Ask HN: JavaScript library for chart like GitHub commit history?

1 pointsby ben-gyalmost 5 years ago

1 comment

catacombsalmost 5 years ago
This can be accomplished with D3.js[1] to bind data to HTML elements -- a div block, in your case -- and color them based on value.<p>D3 is a big library, so you&#x27;ll likely only need these modules:<p><pre><code> d3-selection d3-scale </code></pre> [1]: <a href="https:&#x2F;&#x2F;d3js.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;d3js.org&#x2F;</a>