Closed
Description
What it looks like (false behavior)
My Options
options = {
{
legend: {
display: false
},
maintainAspectRatio: false,
scales: {
xAxes: [{
stacked: true,
title: 'time',
type: 'time',
gridLines: {
lineWidth: 2
},
time: {
unit: 'day',
unitStepSize: 1
},
ticks: {
maxRotation: 0
}
}],
yAxes: [{
stacked: true,
ticks: {
beginAtZero: true
}
}]
}
}
}
My datasets
datasets: [{
label: 'one',
data: [{
x: '2016-12-25',
y: 20
},
{
x: '2016-12-26',
y: 10
}
],
backgroundColor: 'green'
},
{
label: 'two',
data: [{
x: '2016-12-27',
y: 20
},
{
x: '2016-12-28',
y: 10
}
],
backgroundColor: 'red'
}
]
}