图标曲线 总变更为+

This commit is contained in:
huang 2016-04-14 10:10:31 +08:00
parent adf6cca435
commit 12efc10759
2 changed files with 10 additions and 43 deletions

View File

@ -72,6 +72,8 @@
<% end %>
</div>
<div class="cl"></div>
<%# 更新访问数 %>
<% flag = true %>
<div>
<% if @project.project_type == 0 %>
<% unless static_project_score(@project.project_score) == 0 %>

View File

@ -10,14 +10,9 @@
<div class="cl"></div>
</div>
<div class="riviseRed fl"></div><div class="fl">删除 是版本库的提交次数, 显示为橘红色。</div><br>
<div class="changeBlue fl"></div><div class="fl">变更 是对版本库中文件的修改次数, 显示为蓝色。</div>
<div id = "container">
</div>
<div id = "container_code">
<div id = "container_code" class="mt30">
</div>
<script>
$(function () {
@ -29,7 +24,7 @@
text: '代码提交量'
},
subtitle: {
text: 'Source: WorldClimate.com'
// text: 'Source: WorldClimate.com'
},
xAxis: {
// categories: ["Jan", "Jan", "Jan", 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
@ -58,20 +53,21 @@
}
},
series: [{
name: '改动或增加的代码行数',
name: '改动或增加',
color: 'red',
// data: [7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
data: <%= @static_total_per_user.map{|c| c.add.to_i} %>
},
{
name: '删除的代码行数',
name: '删除',
data: <%= @static_total_per_user.map{|c| c.del.to_i} %>
},{
name: '总变动行数',
name: '总变',
data: <%= @static_total_per_user.map{|c| c.changes.to_i} %>
}]
});
// 代码提交次数统计
$('#container').highcharts({
chart: {
type: 'line'
@ -83,7 +79,7 @@
text: '代码提交次数'
},
subtitle: {
text: 'Source: WorldClimate.com'
// text: 'Source: WorldClimate.com'
},
xAxis: {
// categories: ["Jan", "Jan", "Jan", 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
@ -109,7 +105,7 @@
}
},
series: [{
// name: 'Tokyo',
name: '提交次数',
// data: [7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
data: <%= @static_total_per_user.map{|c| c.commits_num.to_i} %>
}
@ -121,37 +117,6 @@
});
});
</script>
<!--<div class="resourcesSendTo">-->
<!--<select class="projectRepType" onclick="chooseCommitType('<%#= @project_id %>', '<%#= @repository_id %>');">-->
<!--<option value="1">总提交</option>-->
<!--<option value="2">一个月内</option>-->
<!--<option value="3">一周内</option>-->
<!--</select>-->
<!--</div>-->
<!--提交总数-->
<!--<div id="rep_commit_stats">-->
<!--100次提交-->
<!--</div>-->
<!--<div id="rep_code_stats">-->
<!--1000行代码-->
<!--</div>-->
<div >
<p>总情况</p>
<% @static_total_per_user.each do |commit| %>
<p>总提交次数</p>
<%= commit.uname %>:<%= commit.commits_num %>
<p>总提交代码量</p>
<%= commit.uname %>:总提交次数<%= commit.commits_num %>
<%= commit.add %>
<%= commit.del %>
<% end %>
</br>
</br>
</div>
<p><%= link_to l(:button_back), :action => 'show', :id => @project %></p>
<% html_title(l(:label_repository), l(:label_statistics)) -%>