Chart.js/test/fixtures/core.scale/crossAlignment/cross-align-left-near.js
Evert Timberg 1ca60808b4
Shorten alignment settings for axes (#7886)
* Rename crossAlignment to crossAlign
* Update alignment to align for cartesian axes
2020-10-14 08:27:54 -04:00

32 lines
421 B
JavaScript

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