This commit is contained in:
syuilo 2018-08-25 19:34:54 +09:00
parent 990a583e5e
commit 65549d06d9

View file

@ -394,7 +394,7 @@ export default Vue.extend({
yAxes: [{
ticks: {
callback: value => {
return Vue.filter('bytes')(value);
return Vue.filter('bytes')(value, 1);
}
}
}]
@ -403,7 +403,7 @@ export default Vue.extend({
callbacks: {
label: (tooltipItem, data) => {
const label = data.datasets[tooltipItem.datasetIndex].label || '';
return `${label}: ${Vue.filter('bytes')(tooltipItem.yLabel)}`;
return `${label}: ${Vue.filter('bytes')(tooltipItem.yLabel, 1)}`;
}
}
}