Max Chu | 6a4bb65 | 2017-09-29 17:15:56 -0700 | [diff] [blame] | 1 | |
| 2 | <!-- |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | <div class="row"> |
| 19 | <div class="col-md-12"> |
| 20 | <h1>Delay and Jitter Stats</h1> |
| 21 | </div> |
| 22 | <div ng-hide="vm.lineChart.data.length > 0"> |
| 23 | <div class="loader"> |
| 24 | Loading |
| 25 | </div> |
| 26 | </div> |
| 27 | <div class="row" ng-show="vm.lineChart.data.length > 0"> |
| 28 | <div class="col-sm-8"> |
| 29 | <h3>{{vm.graphTitle}}</h3> |
| 30 | <canvas class="chart chart-line" chart-data="vm.lineChart.data" chart-dataset-override="vm.lineChart.dataset" |
| 31 | chart-labels="vm.lineChart.labels" chart-series="vm.lineChart.series" chart-options="vm.lineOptions" chart-colors="vm.lineColors"> |
| 32 | </canvas> |
| 33 | <div class="row"> |
| 34 | <div class="col-xs-2" ng-hide="vm.graphOption == 'delay'"> |
| 35 | <div class="square" style="background-color: #ffa500"></div> |
| 36 | <label>Jitter Max</label> |
| 37 | </div> |
| 38 | <div class="col-xs-2" ng-hide="vm.graphOption == 'delay'"> |
| 39 | <div class="square" style="background-color: #c55d01"></div> |
| 40 | <label>Jitter Average</label> |
| 41 | </div> |
| 42 | <div class="col-xs-2" ng-hide="vm.graphOption == 'delay'"> |
| 43 | <div class="square" style="background-color: #8b0000"></div> |
| 44 | <label>Jitter Min</label> |
| 45 | </div> |
| 46 | <div class="col-xs-2" ng-hide="vm.graphOption == 'jitter'"> |
| 47 | <div class="square" style="background-color: #add8e6"></div> |
| 48 | <label>Delay Max</label> |
| 49 | </div> |
| 50 | <div class="col-xs-2" ng-hide="vm.graphOption == 'jitter'"> |
| 51 | <div class="square" style="background-color: #6f6db9"></div> |
| 52 | <label>Delay Average</label> |
| 53 | </div> |
| 54 | <div class="col-xs-2" ng-hide="vm.graphOption == 'jitter'"> |
| 55 | <div class="square" style="background-color: #00008b"></div> |
| 56 | <label>Delay Min</label> |
| 57 | </div> |
| 58 | </div> |
| 59 | <div class="btn-group"> |
| 60 | <label class="btn btn-primary" ng-model="vm.graphOption" uib-btn-radio="'both'" ng-click="vm.renderGraph()">Delay and Jitter</label> |
| 61 | <label class="btn btn-primary" ng-model="vm.graphOption" uib-btn-radio="'delay'" ng-click="vm.renderGraph()">Delay only</label> |
| 62 | <label class="btn btn-primary" ng-model="vm.graphOption" uib-btn-radio="'jitter'" ng-click="vm.renderGraph()">Jitter only</label> |
| 63 | </div> |
| 64 | </div> |
| 65 | <div class="col-sm-4"> |
| 66 | <div class="row"> |
| 67 | <div class="col-sm-12" style="margin-bottom: 50px"> |
| 68 | <h3>Current Delay Bin</h3> |
| 69 | <canvas class="chart chart-bar" chart-data="vm.delayBin.data" chart-dataset-override="vm.delayBin.dataset" |
| 70 | chart-labels="vm.delayBin.labels" chart-series="vm.delayBin.series" chart-options="vm.options"> |
| 71 | </canvas> |
| 72 | </div> |
| 73 | <div class="col-sm-12"> |
| 74 | <h3>Current Jitter Bin</h3> |
| 75 | <canvas class="chart chart-bar" chart-data="vm.jitterBin.data" chart-dataset-override="vm.jitterBin.dataset" |
| 76 | chart-labels="vm.jitterBin.labels" chart-series="vm.jitterBin.series" chart-options="vm.options"> |
| 77 | </canvas> |
| 78 | </div> |
| 79 | </div> |
| 80 | </div> |
| 81 | </div> |
| 82 | </div> |