Skip to content

Commit

Permalink
#70 Add a case by severity docut chart to the statistics page
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jan 2, 2017
1 parent 87cb4ee commit aee7cc0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
18 changes: 18 additions & 0 deletions ui/app/scripts/controllers/StatisticsCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@
}
};

$scope.caseBySeverity = {
title: 'Cases by Severity',
type: 'case',
field: 'severity',
dateField: 'startDate',
tagsField: 'tags',
colors: {
'1': '#5bc0de',
'2': '#f0ad4e',
'3': '#d9534f'
},
names: {
'1': 'Low',
'2': 'Medium',
'3': 'High'
}
};

$scope.caseByStatus = {
title: 'Cases by status',
type: 'case',
Expand Down
9 changes: 6 additions & 3 deletions ui/app/views/partials/statistics.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@
</div>

<div class="row">
<div class="col-md-4">
<div class="col-md-3">
<chart type="donut" options="caseByTlp" refresh-on="refresh-charts" autoload="false"></chart>
</div>
<div class="col-md-4">
<div class="col-md-3">
<chart type="donut" options="caseByStatus" refresh-on="refresh-charts" autoload="false"></chart>
</div>
<div class="col-md-4">
<div class="col-md-3">
<chart type="donut" options="caseByResolution" refresh-on="refresh-charts" autoload="false"></chart>
</div>
<div class="col-md-3">
<chart type="donut" options="caseBySeverity" refresh-on="refresh-charts" autoload="false"></chart>
</div>
</div>

<div class="row">
Expand Down

0 comments on commit aee7cc0

Please sign in to comment.