Browse Source

Render numeric axis in charts as integers (#38359).

Patch by Holger Just.


git-svn-id: https://svn.redmine.org/redmine/trunk@22139 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/5.1.0
Go MAEDA 1 year ago
parent
commit
fe386d1497
2 changed files with 7 additions and 1 deletions
  1. 1
    1
      app/views/reports/_details.html.erb
  2. 6
    0
      app/views/repositories/stats.html.erb

+ 1
- 1
app/views/reports/_details.html.erb View File

@@ -72,7 +72,7 @@
},
scales: {
yAxis: {stacked: true},
xAxis: {stacked: true}
xAxis: {stacked: true, ticks: {precision: 0}}
}
}
});

+ 6
- 0
app/views/repositories/stats.html.erb View File

@@ -45,6 +45,9 @@ $(document).ready(function(){
display: true,
text: <%= raw l(:label_commits_per_month).to_json %>
}
},
scales: {
yAxis: {ticks: {precision: 0}}
}
}
});
@@ -86,6 +89,9 @@ $(document).ready(function(){
display: true,
text: <%= raw l(:label_commits_per_author).to_json %>
}
},
scales: {
xAxis: {ticks: {precision: 0}}
}
}
});

Loading…
Cancel
Save