summaryrefslogtreecommitdiffstats
path: root/app/views/repositories
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/repositories')
-rw-r--r--app/views/repositories/stats.html.erb29
1 files changed, 17 insertions, 12 deletions
diff --git a/app/views/repositories/stats.html.erb b/app/views/repositories/stats.html.erb
index 2020976e1..5266dc262 100644
--- a/app/views/repositories/stats.html.erb
+++ b/app/views/repositories/stats.html.erb
@@ -36,13 +36,15 @@ $(document).ready(function(){
data: chartData,
options: {
elements: {
- rectangle: {borderWidth: 2}
+ bar: {borderWidth: 2}
},
responsive: true,
- legend: {position: 'right'},
- title: {
- display: true,
- text: <%= raw l(:label_commits_per_month).to_json %>
+ plugins: {
+ legend: {position: 'right'},
+ title: {
+ display: true,
+ text: <%= raw l(:label_commits_per_month).to_json %>
+ }
}
}
});
@@ -70,17 +72,20 @@ $(document).ready(function(){
};
new Chart(document.getElementById("commits_per_author").getContext("2d"), {
- type: 'horizontalBar',
+ type: 'bar',
data: chartData,
options: {
+ indexAxis: 'y',
elements: {
- rectangle: {borderWidth: 2}
+ bar: {borderWidth: 2}
},
responsive: true,
- legend: {position: 'right'},
- title: {
- display: true,
- text: <%= raw l(:label_commits_per_author).to_json %>
+ plugins: {
+ legend: {position: 'right'},
+ title: {
+ display: true,
+ text: <%= raw l(:label_commits_per_author).to_json %>
+ }
}
}
});
@@ -94,5 +99,5 @@ $(document).ready(function(){
<% html_title(l(:label_repository), l(:label_statistics)) -%>
<% content_for :header_tags do %>
- <%= javascript_include_tag "Chart.bundle.min" %>
+ <%= javascript_include_tag "chart.min" %>
<% end %>