2015-11-26 14:37:03 +05:30
|
|
|
%div
|
|
|
|
%p.light
|
2015-09-25 12:07:36 +05:30
|
|
|
Commit duration in minutes for last 30 commits
|
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
%canvas#build_timesChart{height: 200}
|
2015-09-25 12:07:36 +05:30
|
|
|
|
|
|
|
:javascript
|
|
|
|
var data = {
|
|
|
|
labels : #{@charts[:build_times].labels.to_json},
|
|
|
|
datasets : [
|
|
|
|
{
|
2015-11-26 14:37:03 +05:30
|
|
|
fillColor : "rgba(220,220,220,0.5)",
|
|
|
|
strokeColor : "rgba(220,220,220,1)",
|
|
|
|
barStrokeWidth: 1,
|
|
|
|
barValueSpacing: 1,
|
|
|
|
barDatasetSpacing: 1,
|
2015-09-25 12:07:36 +05:30
|
|
|
data : #{@charts[:build_times].build_times.to_json}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
var ctx = $("#build_timesChart").get(0).getContext("2d");
|
2015-11-26 14:37:03 +05:30
|
|
|
new Chart(ctx).Bar(data,{"scaleOverlay": true, responsive: true, maintainAspectRatio: false});
|