1๐
โ
I figured it out, in case someone has the same issue, I had to add offset: true.
var myScales = {
xAxes: [{
display: true,
stacked: true,
id: "x-axis-2",
type: 'category',
offset: true,
ticks: {
beginAtZero: true
}
}, {
display: false,
stacked: false,
id: "x-axis-1",
type: 'category',
offset: true,
gridLines: {
display:false
},
ticks: {
beginAtZero: true
}
}],
yAxes: [{
stacked: false,
ticks: {
beginAtZero: true
}
}]
}
Source:stackexchange.com