Changeset 3034 for lang/ruby/coderepos_stat
- Timestamp:
- 12/11/07 04:26:50 (13 months ago)
- Files:
-
- 1 modified
-
lang/ruby/coderepos_stat/coderepos-stat.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/coderepos_stat/coderepos-stat.rb
r3033 r3034 25 25 sorted_label = sorted_keys.map{|k| "#{k[4..5]}-#{k[6..7]}"} 26 26 sorted_data = sorted_keys.map{|k| stat[k]} 27 max = sorted_data.max 28 sorted_data = sorted_data.map{|e| (e * 100 / max)} 27 29 28 30 params = Array.new … … 30 32 params << "cht=lc" 31 33 params << "chxt=x,y" 32 params << "chxl=0:|#{sorted_label.join('|')}|1:|| 100"34 params << "chxl=0:|#{sorted_label.join('|')}|1:||#{max}" 33 35 params << "chd=t:#{sorted_data.join(',')}" 34 36 params << "chtt=CodeRepos%20commits/day"
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)