1
0
Fork 0

fixed unuseful format of data for request chart in the dashboard (frontend)

This commit is contained in:
Heiko Kernbach 2014-10-09 14:50:09 +02:00
parent a346e257bb
commit 637b1582b2
1 changed files with 14 additions and 1 deletions

View File

@ -162,7 +162,20 @@
header: "Requests",
labels: ["datetime", "GET", "PUT", "POST", "DELETE", "PATCH", "HEAD", "OPTIONS", "OTHER"],
stackedGraph: true,
div: "requestsChart"
div: "requestsChart",
axes: {
y: {
valueFormatter: function (y) {
return parseFloat(y.toPrecision(3));
},
axisLabelFormatter: function (y) {
if (y === 0) {
return 0;
}
return parseFloat(y.toPrecision(3));
}
}
}
}
},