Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_build_times.haml « charts « ci « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c3c2f5724148aa6e2b4af15ad6784882e00e2b1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%fieldset
  %legend
    Commit duration in minutes for last 30 commits

  %canvas#build_timesChart.padded{width: 800, height: 300}

:javascript
  var data = {
    labels : #{@charts[:build_times].labels.to_json},
    datasets : [
      {
        fillColor : "#4A3",
        strokeColor : "rgba(151,187,205,1)",
        pointColor : "rgba(151,187,205,1)",
        pointStrokeColor : "#fff",
        data : #{@charts[:build_times].build_times.to_json}
      }
    ]
  }
  var ctx = $("#build_timesChart").get(0).getContext("2d");
  new Chart(ctx).Line(data,{"scaleOverlay": true});