Skip to content

Commit dbcef51

Browse files
author
Greg Gauthier
committed
add created status to doughnut
1 parent 9b2b888 commit dbcef51

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: app/components/dashboard/dashboardController.js

+8
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ angular.module('dashboard', [])
3333
var running = 0;
3434
var ghost = 0;
3535
var stopped = 0;
36+
var created = 0;
3637

3738
for (var i = 0; i < d.length; i++) {
3839
var item = d[i];
3940

4041
if (item.Status === "Ghost") {
4142
ghost += 1;
43+
} else if (item.Status === "Created") {
44+
created += 1;
4245
} else if (item.Status.indexOf('Exit') !== -1) {
4346
stopped += 1;
4447
} else {
@@ -51,6 +54,11 @@ angular.module('dashboard', [])
5154

5255
var c = new Chart($('#containers-chart').get(0).getContext("2d"));
5356
var data = [
57+
{
58+
value: created,
59+
color: '#000000',
60+
title: 'Created'
61+
},
5462
{
5563
value: running,
5664
color: '#5bb75b',

0 commit comments

Comments
 (0)