1👍
✅
use this for your labels array:
labels: [["jan", 20], "", "", "", "", "", ["jul", 20], "", "", "", "", "", ["jan", 21]],
and this to your options object:
options: {
scales: {
xAxes: [{
ticks: {
callback: (label) => (label === "" ? null : label)
}
}]
}
}
will get the following result:
Since the tick marks are getting generated from the grid lines they dissapear too, dont know how you can fix that
Source:stackexchange.com