I have a Charts.js Bar-Chart with whole Numbers, like 1,2,3,4,5 - I will never have 1.5 , 2.7 etc. But the Charts shows all the decimal Numbers, like in the Screenshot. I want that the Chart only shows whole number. I can't find a Solution for this. Can you help me?
This is my Configuration:
type: 'bar',
data: {
labels: departmentLabels,
datasets: [{
label: 'Staff',
backgroundColor: color(window.chartColors.grey).alpha(0.5).rgbString(),
borderColor: window.chartColors.black,
borderWidth: 1,
data: departmentCount
}]
},
options: {
responsive: true,
legend: {
position: 'top',
},
title: {
display: true,
text: 'Usage by Department'
},
}