berkerpeksag / github-badge

GitHub Badge is a simple embeddable badge showing your GitHub stats like the number of public repositories, number of followers, favorite languages etc.
https://githubbadge.appspot.com/
289 stars 31 forks source link

Feature request: Add sparklines to the badge #8

Closed emres closed 12 years ago

emres commented 13 years ago

Adding tiny but informative sparklines would be great! See http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR for some definitions and http://sparklines.bitworking.info/ http://www.xml.com/pub/a/2005/06/22/sparklines.html for examples implemented in Python.

BYK commented 13 years ago

Good idea. "pushed_at" property for each repo may be used to create a graph.

emres commented 13 years ago

What should / could be shown via a sparkline? A preliminary suggestion: x-axis: time y-axis: number of commits (any other visualization ideas that can be realized via sparklines?)

BYK commented 13 years ago

We can create a "social" sparkline and a "coder" sparkline. Each can have its own calculations though for social for example number of issue events can be counted and for coder, commits can be a good measure. Any more ideas like pull requests, milestone completions, forks, etc.?

BYK commented 13 years ago

The first prototype can be seen here for sometime:

emres commented 13 years ago

Definitely not bad for a starter! I liked it ;-)

BYK commented 13 years ago

Thanks! It took some effort and there is much to improve though at least we can have something to show =)

BYK commented 12 years ago

@emres here is how the badge looks like now:

Very similar to the previous shot but has some minor differences. It shows your commit activity for the past 14 days. The maximum is your maximum and the minimum is 0. We can play with it comfortably from now on. Any suggestions?

BYK commented 12 years ago

BYK/pyresto#8 was the blocker for this issue so some gory details can be found there and related commits with that issue.

emres commented 12 years ago

This one looks much more streamlined indeed! I'm looking forward to the updated http://githubbadge.appspot.com/ eagerly ;-)

BYK commented 12 years ago

The new version is on the way and @berkerpeksag made it look even better! Thanks for the great idea =)