1👍
✅
options.scales.xAxes.ticks
has a callback
that can be used to manipulate the value as it should be displayed.
Docs:
http://www.chartjs.org/docs/latest/axes/styling.html#tick-configuration
options: {
scales: {
xAxes: [{
ticks: {
callback: value => value.toString().replace('-', '')
}
}]
}
}
Working example:
https://jsfiddle.net/Lkea8z2q/11/
Source:stackexchange.com