1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

Merge branch 'master' into networks-volumes

This commit is contained in:
Kevan Ahlquist 2016-01-10 19:34:03 -06:00
commit 00528edd7c
4 changed files with 29 additions and 7 deletions

View file

@ -228,6 +228,7 @@ angular.module('dockerui.services', ['ngResource'])
max = map[k];
}
}
var steps = Math.min(max, 10);
var dataset = {
fillColor: "rgba(151,187,205,0.5)",
strokeColor: "rgba(151,187,205,1)",
@ -240,10 +241,11 @@ angular.module('dockerui.services', ['ngResource'])
datasets: [dataset]
},
{
scaleStepWidth: 1,
scaleStepWidth: Math.ceil(max / steps),
pointDotRadius: 1,
scaleIntegersOnly: true,
scaleOverride: true,
scaleSteps: max
scaleSteps: steps
});
}
};