summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-03-22 03:16:56 +0000
committerGo MAEDA <maeda@farend.jp>2023-03-22 03:16:56 +0000
commitfe386d14977b85a92aa430bc181703835372b144 (patch)
tree65d4b4274725d34a18e27d671fa3edf9f2c33dbb
parent8cbc71c1b661aba00cfc55318ae1ca329b515f1c (diff)
downloadredmine-fe386d14977b85a92aa430bc181703835372b144.tar.gz
redmine-fe386d14977b85a92aa430bc181703835372b144.zip
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
-rw-r--r--app/views/reports/_details.html.erb2
-rw-r--r--app/views/repositories/stats.html.erb6
2 files changed, 7 insertions, 1 deletions
diff --git a/app/views/reports/_details.html.erb b/app/views/reports/_details.html.erb
index 3c6472743..2db6ce014 100644
--- a/app/views/reports/_details.html.erb
+++ b/app/views/reports/_details.html.erb
@@ -72,7 +72,7 @@
},
scales: {
yAxis: {stacked: true},
- xAxis: {stacked: true}
+ xAxis: {stacked: true, ticks: {precision: 0}}
}
}
});
diff --git a/app/views/repositories/stats.html.erb b/app/views/repositories/stats.html.erb
index 5266dc262..e4adae0cd 100644
--- a/app/views/repositories/stats.html.erb
+++ b/app/views/repositories/stats.html.erb
@@ -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}}
}
}
});