tweaks to block size formatting in block size chart.
This commit is contained in:
parent
5730ccc3c7
commit
fa555e77be
1 changed files with 3 additions and 3 deletions
|
@ -156,7 +156,7 @@
|
||||||
axisColor: '#1e88e5',
|
axisColor: '#1e88e5',
|
||||||
axisThickness: 2,
|
axisThickness: 2,
|
||||||
labelFunction: function(value) {
|
labelFunction: function(value) {
|
||||||
return (Math.round((value / 1000) * 100)/100) + ' KB';
|
return (Math.round((value / 1000) * 100)/100).toFixed(2) + ' KB';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -222,7 +222,7 @@
|
||||||
switchable: false,
|
switchable: false,
|
||||||
balloonFunction: function(item, graph) {
|
balloonFunction: function(item, graph) {
|
||||||
var result = graph.balloonText;
|
var result = graph.balloonText;
|
||||||
return result.replace('[[AvgBlockSize]]', Math.round((item.dataContext.AvgBlockSize / 1000) * 100)/100);
|
return result.replace('[[AvgBlockSize]]', (Math.round((item.dataContext.AvgBlockSize / 1000) * 100)/100).toFixed(2));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -274,7 +274,7 @@
|
||||||
if (item.dataContext) {
|
if (item.dataContext) {
|
||||||
var g = item.graph;
|
var g = item.graph;
|
||||||
if (g.id === 'g-block-size' && item.dataContext.AvgBlockSize > 0) {
|
if (g.id === 'g-block-size' && item.dataContext.AvgBlockSize > 0) {
|
||||||
return g.balloonText.replace('[[AvgBlockSize]]', Math.round((item.dataContext.AvgBlockSize / 1000) * 100)/100);
|
return g.balloonText.replace('[[AvgBlockSize]]', (Math.round((item.dataContext.AvgBlockSize / 1000) * 100)/100).toFixed(2) );
|
||||||
}
|
}
|
||||||
if (g.id === 'g-price' && item.dataContext.AvgUSD) {
|
if (g.id === 'g-price' && item.dataContext.AvgUSD) {
|
||||||
return g.balloonText.replace('[[AvgUSD]]', item.dataContext.AvgUSD.toFixed(2));
|
return g.balloonText.replace('[[AvgUSD]]', item.dataContext.AvgUSD.toFixed(2));
|
||||||
|
|
Loading…
Reference in a new issue