Jukka Kurkela 160534f913
Add 'single' mode for stacking (#8586)
* Add `'single'` mode for stacking

* Update fixture
2021-03-07 10:52:31 -05:00

52 lines
864 B
JavaScript

module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2],
datasets: [
{
data: [0, -1, -1],
backgroundColor: '#ff0000',
},
{
data: [0, 2, 2],
backgroundColor: '#00ff00',
},
{
data: [0, 0, 1],
backgroundColor: '#0000ff',
}
]
},
options: {
elements: {
line: {
fill: '-1',
},
point: {
radius: 0
}
},
layout: {
padding: 32
},
plugins: {
legend: false,
title: false,
tooltip: false,
filler: true
},
scales: {
x: {display: false},
y: {display: false, stacked: 'single'}
}
}
},
options: {
canvas: {
height: 256,
width: 512
}
}
};