Github contributions graph

JavascriptRuby on-RailsGithubSvg

Javascript Problem Overview


There is a wonderful contributions chart that github.com came with.

enter image description here

Does anybody know if they use some kind of library or gem?

If it is open source, I would like to use it my project as well. It looks great!

Javascript Solutions


Solution 1 - Javascript

Not exactly the same style, but I think it's done using the calendar example of D3.js.

If you do a "View Source" on GitHub's page, you'll see that they're using D3 for rendering their calendar.

A similar look is achieved by js-chart-widgets.

Solution 2 - Javascript

The Github Contributions calendar is using D3. If you inspect your network traffic you'll see the request for the JS and you can look through the source yourself.

EDIT: I've removed the source link as the CDN url is likely to change over time. It should still be locatable if you take a look with your web inspector.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAlex SmolovView Question on Stackoverflow
Solution 1 - JavascriptIsmael GhalimiView Answer on Stackoverflow
Solution 2 - JavascriptTyler HughesView Answer on Stackoverflow