Awesome
Github Chart API
Make this:
with this:
<img src="https://ghchart.rshah.org/2016rshah" alt="2016rshah's Github chart" />
Of course you can replace 2016rshah
with your own github username.
Why
Being able to look back through the year and see how productive you've been is a great feeling, and that little green calendar is honestly one of my favorite data visualizations. But there's no reason it should be constrained to only living on the github website, you should be able to put it anywhere you want!
For example, I personally think it would really spiff up a personal website.
Color Schemes
We also support custom color schemes! You can provide any base color and we will make shades for the chart. Just visit https://ghchart.rshah.org/<HEX-COLOR>/2016rshah
and replace <HEX-COLOR>
with your hex color code, not including the leading hashtag. For example if you want a blue-themed chart that is based around the hex color #409ba5
, you can visit the following route:
<img src="https://ghchart.rshah.org/409ba5/2016rshah" alt="2016rshah's Blue Github Chart" />
Contributing
If you see anything that can be improved send in an issue/PR.
To get the code up and running, make sure ruby, etc. is properly installed, then run bundle install
, then run ruby app.rb
and visit localhost:4567
in your browser.
To deploy, make sure heroku cli is installed, login, add the heroku remote, and run git push heroku master
.
See also
The github repo
The actual site
This ruby gem