1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

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
This commit is contained in:
Go MAEDA 2023-03-22 03:16:56 +00:00
parent 8cbc71c1b6
commit fe386d1497
2 changed files with 7 additions and 1 deletions

View File

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

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}}
}
}
});