summaryrefslogtreecommitdiffstats
path: root/app/views/reports
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-03-03 14:17:19 +0000
committerGo MAEDA <maeda@farend.jp>2022-03-03 14:17:19 +0000
commit4926771a8ae7425c2f9a68c35ff877f480e9f408 (patch)
tree3e9755a2bf08df64512b037315e49dc833b358b4 /app/views/reports
parent05714ab18a4a4d4a402923b5abfe4fd633f85299 (diff)
downloadredmine-4926771a8ae7425c2f9a68c35ff877f480e9f408.tar.gz
redmine-4926771a8ae7425c2f9a68c35ff877f480e9f408.zip
Update Chart.js to 3.7.1 (#36701).
Patch by Maciej Pankanin. git-svn-id: http://svn.redmine.org/redmine/trunk@21446 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/reports')
-rw-r--r--app/views/reports/_details.html.erb21
1 files changed, 12 insertions, 9 deletions
diff --git a/app/views/reports/_details.html.erb b/app/views/reports/_details.html.erb
index 701591c74..3361117fc 100644
--- a/app/views/reports/_details.html.erb
+++ b/app/views/reports/_details.html.erb
@@ -41,21 +41,24 @@
chartData.datasets[i].borderWidth = 1;
}
new Chart($(canvas_id), {
- 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: title
+ plugins: {
+ legend: {position: 'right'},
+ title: {
+ display: true,
+ text: title
+ }
},
scales: {
- yAxes: [{ stacked: true }],
- xAxes: [{ stacked: true }]
+ yAxis: {stacked: true},
+ xAxis: {stacked: true}
}
}
});
@@ -74,6 +77,6 @@
});
<% end %>
<% content_for :header_tags do %>
- <%= javascript_include_tag "Chart.bundle.min" %>
+ <%= javascript_include_tag "chart.min" %>
<% end %>
<% end %>