Chart.js/test/fixtures/core.scale/title/align-end.js
Jukka Kurkela f7ebedc367
Scale: refactor drawTitle, add tests (#8598)
* Scale: refactor drawTitle, add tests
* CC, lint
* update
2021-03-09 08:35:43 -05:00

78 lines
1.4 KiB
JavaScript

module.exports = {
config: {
type: 'line',
options: {
events: [],
scales: {
top: {
type: 'linear',
position: 'top',
ticks: {
display: false
},
gridLines: {
display: false
},
title: {
display: true,
align: 'end',
text: 'top'
}
},
left: {
type: 'linear',
position: 'left',
ticks: {
display: false
},
gridLines: {
display: false
},
title: {
display: true,
align: 'end',
text: 'left'
}
},
bottom: {
type: 'linear',
position: 'bottom',
ticks: {
display: false
},
gridLines: {
display: false
},
title: {
display: true,
align: 'end',
text: 'bottom'
}
},
right: {
type: 'linear',
position: 'right',
ticks: {
display: false
},
gridLines: {
display: false
},
title: {
display: true,
align: 'end',
text: 'right'
}
},
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
},
}
};