init: (labels, values, title) ->
r = Raphael('activity-chart')
+
+ fin = ->
+ @flag = r.popup(@bar.x, @bar.y, @bar.value or "0").insertBefore(this)
+
+ fout = ->
+ @flag.animate
+ opacity: 0, 300, -> @remove()
+
r.text(160, 10, title).attr font: "13px sans-serif"
r.barchart(
- 10, 10, 400, 160,
+ 10, 20, 560, 200,
[values],
{colors:["#456"]}
).label(labels, true)
+ .hover(fin, fout)
= render "commits/head"
.row
- .span5
- %h4
- Stats:
+ .span6
+ %div#activity-chart.chart
+ %hr
%p
%b Total commits:
%span= @stats.commits_count
%b Authors:
%span= @stats.authors_count
- %br
- %div#activity-chart
- .span7
+
+ .span6
%h4 Top 50 Committers:
%ol.styled
- @stats.authors[0...50].each do |author|