Chart.js/test/fixtures/controller.bar/aligned-pixels.js
2021-03-16 08:41:51 -04:00

30 lines
484 B
JavaScript

module.exports = {
config: {
type: 'bar',
data: {
labels: ['a'],
datasets: [{
data: [-1]
}, {
data: [1]
}]
},
options: {
indexAxis: 'y',
events: [],
backgroundColor: 'navy',
devicePixelRatio: 1.25,
scales: {
x: {display: false, alignToPixels: true},
y: {display: false, stacked: true}
}
}
},
options: {
canvas: {
width: 100,
height: 500
}
}
};