2👍
✅
You can use callback
function to add labels on xAxes
. Idea is to not display last label, see code sample:
ticks: {
callback: function(value, index, values) {
var lastValue = values[values.length - 1];
var displayValue = value === lastValue ? '' : lastValue;
return displayValue;
}
}
in callback functions you get all labels what you have, just add this to xAxes
.
scales: {
xAxes: [{
// ticks
}],
Source:stackexchange.com