This commit is contained in:
syuilo 2018-08-25 12:14:36 +09:00
parent b34c51e3cd
commit 87324da7f0

View file

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