|
|
|
@ -66,8 +66,24 @@ |
|
|
|
<div class="tab-pane fade" id="chart" role="tabpanel"> |
|
|
|
<div class="container my-4 rounded border shadow-sm py-3 px-4"> |
|
|
|
<%= bar_chart @progress_chart_data, |
|
|
|
suffix: "%", |
|
|
|
donut: false, |
|
|
|
height: "300px", |
|
|
|
plugins: { |
|
|
|
tooltip: { |
|
|
|
callbacks: { |
|
|
|
label: %|function(context) { |
|
|
|
return context.dataset.label + ": " + context.raw + "%"; |
|
|
|
}| |
|
|
|
} |
|
|
|
}, |
|
|
|
legend: { |
|
|
|
position: "bottom" |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
library: { |
|
|
|
legend: { position: "bottom" }, |
|
|
|
tooltip: { |
|
|
|
|