Chart.js/test/fixtures/scale.category/ticks-from-data.js
Jukka Kurkela f0fd28af66
Allow "spriting" text in fixtures (#7073)
Allow "blit" text drawing in fixtures
2020-02-14 12:33:08 -05:00

31 lines
525 B
JavaScript

module.exports = {
threshold: 0.01,
config: {
type: 'horizontalBar',
data: {
datasets: [{
data: [10, 5, 0, 25, 78]
}],
labels: ['tick1', 'tick2', 'tick3', 'tick4', 'tick5']
},
options: {
legend: false,
title: false,
elements: {
rectangle: {
backgroundColor: '#AAAAAA80',
borderColor: '#80808080',
borderWidth: {bottom: 6, left: 15, top: 6, right: 15}
}
},
scales: {
x: {display: false},
y: {display: true}
}
}
},
options: {
spriteText: true
}
};