Minor Health UI fixes

- format the Oy axis ticks as integers on the Total Status Code
Count chart
- prevent the Average Response Time chart from showing negative
values on the Oy axis
- remove the deprecated transitionDuration field
- set the transition duration to 0 on the Average Response Time
chart to avoid triggering an NVD3 marker placement bug
This commit is contained in:
Mihai Todor 2017-05-22 17:42:29 +01:00 committed by Ludovic Fernandez
parent a9216e24f5
commit 7874ffd506

View file

@ -32,9 +32,9 @@ function HealthController($scope, $interval, $log, Health) {
valueFormat: function (d) { valueFormat: function (d) {
return d3.format('d')(d); return d3.format('d')(d);
}, },
transitionDuration: 50,
yAxis: { yAxis: {
axisLabelDistance: 30 axisLabelDistance: 30,
tickFormat: d3.format('d')
} }
}, },
"title": { "title": {
@ -95,7 +95,6 @@ function HealthController($scope, $interval, $log, Health) {
bottom: 40, bottom: 40,
left: 55 left: 55
}, },
transitionDuration: 50,
x: function (d) { x: function (d) {
return d.x; return d.x;
}, },
@ -112,7 +111,10 @@ function HealthController($scope, $interval, $log, Health) {
tickFormat: function (d) { tickFormat: function (d) {
return d3.format(',.1f')(d); return d3.format(',.1f')(d);
} }
} },
forceY: [0., 1.], // This prevents the chart from showing -1 on Oy when all the input data points
// have y = 0. It won't disable the automatic adjustment of the max value.
duration: 0 // Bug: Markers will not be drawn if you set this to some other value...
}, },
"title": { "title": {
"enable": true, "enable": true,