]> source.dussan.org Git - redmine.git/commitdiff
Render numeric axis in charts as integers (#38359).
authorGo MAEDA <maeda@farend.jp>
Wed, 22 Mar 2023 03:16:56 +0000 (03:16 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 22 Mar 2023 03:16:56 +0000 (03:16 +0000)
Patch by Holger Just.

git-svn-id: https://svn.redmine.org/redmine/trunk@22139 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/reports/_details.html.erb
app/views/repositories/stats.html.erb

index 3c647274341a4d8e2bc3a7a990f89010a03cb46f..2db6ce01431adab8363637ae82ddd735abe95597 100644 (file)
@@ -72,7 +72,7 @@
         },
         scales: {
           yAxis: {stacked: true},
-          xAxis: {stacked: true}
+          xAxis: {stacked: true, ticks: {precision: 0}}
         }
       }
     });
index 5266dc2620c8ecc635f78258f5bc08a5f6b91be5..e4adae0cd4497bedc97c554c50f93bd1406d4cc2 100644 (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}}
         }
       }
     });