Chart.js/test/fixtures/core.scale/crossAlignment/cross-align-left-center.js
2021-02-10 08:21:39 -05:00

30 lines
465 B
JavaScript

module.exports = {
config: {
type: 'bar',
data: {
datasets: [{
data: [1, 2, 3],
}],
labels: ['Long long label 1', 'Label2', 'Label3']
},
options: {
indexAxis: 'y',
scales: {
y: {
position: 'left',
ticks: {
crossAlign: 'center',
},
},
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 512
}
}
};