Chart.js/test/fixtures/core.scale/label-align-start.js
Evert Timberg dc4eac6323
Cartesian axis text alignment (#7846)
* Generate textBaseline per tick label
* Enable configuration of tick alignment
* Add image based tests of text alignment options
2020-10-10 11:38:55 -04:00

35 lines
431 B
JavaScript

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