56

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!

Alex Smolov
  • 1,831
  • 4
  • 24
  • 43

2 Answers2

49

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.

Mesut Tasci
  • 2,970
  • 1
  • 30
  • 36
Ismael Ghalimi
  • 3,515
  • 2
  • 22
  • 25
  • 24
    I just put together a d3.js plugin for that : https://github.com/kamisama/cal-heatmap. Still in beta and some quirks in Firefox, but it has some nice features – Wa0x6e Mar 07 '13 at 05:15
  • @Kamisama Thanks.Your plugin will save me countless hours. – Akshat Jiwan Sharma Apr 10 '13 at 10:26
  • @Kamisama brilliant work and excellent documentation! Just as a side note, would like to add, that would be awesome if you could add functionality that picks the start date (let's say 15th of September 2016) and calendar is populated from that day till 15 of September 2017). So you would have ranges 15 - 31 in first block, and 1 - 14 in the last block (all of this assumes 1 year date range and month/day as domain/subdomain) – Arthur S. Sep 01 '16 at 18:00
2

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.

Tyler Hughes
  • 469
  • 2
  • 5