Chart.js/test/fixtures/core.scale/crossAlignment/cross-align-top-far.js
Evert Timberg 29f1358328
Cartesian axis label cross alignment (#7874)
* Refactor Y axis alignment to it's own method
* Label Cross alignment
* Add documentation of new setting
* Update docs with live sample
2020-10-12 10:22:13 -04:00

31 lines
414 B
JavaScript

module.exports = {
config: {
type: 'bar',
data: {
datasets: [{
data: [1, 2, 3],
}],
labels: [['Label1', 'line 2', 'line3'], 'Label2', 'Label3']
},
options: {
legend: false,
title: false,
scales: {
x: {
position: 'top',
ticks: {
crossAlignment: 'far',
},
},
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 512
}
}
};