/
graph.html.ep
30 lines (26 loc) · 1.36 KB
/
graph.html.ep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
%layout 'wrapper';
<div ng-controller="ChartCtrl" metric="<%= $metric %>" split="<%= $split %>">
<div class="well well--params">
<p class="caption">Graph Parameters</p>
<div class="checkbox">
<label>
<input type="checkbox"> Normalise values
</label>
</div>
<div class="btn-group btn-group-sm" role="group">
<button type="button" class="btn btn-default">Raw values</button>
<button type="button" class="btn btn-default">Cumulative</button>
<button type="button" class="btn btn-default">Mean deviation</button>
</div>
<p>Moving average length</p>
<span id="slider">
<slider ng-model="movingAverageLength" min="'1'" max="'21'" tooltip="hide"></slider>
<label class="pull-right" ng-bind="movingAverageLength"></label>
</slider>
</div>
<h2><%= $title %></h2>
<canvas id="line" class="chart chart-line" data="data"
labels="labels" legend="true" series="series"
click="onClick">
</canvas>
</div>