Chart.js/test/fixtures/controller.line/fill/order-default.js
2021-02-10 08:21:39 -05:00

50 lines
854 B
JavaScript

module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [3, 1, 2, 0, 8, 1],
backgroundColor: '#ff0000'
},
{
// option in element (fallback)
data: [0, 4, 2, 6, 4, 8],
backgroundColor: '#00ff00'
}
]
},
options: {
elements: {
line: {
fill: true
},
point: {
radius: 0
}
},
layout: {
padding: 32
},
scales: {
x: {display: false},
y: {display: false}
},
plugins: {
legend: false,
title: false,
tooltip: false,
filler: true
}
}
},
options: {
canvas: {
height: 256,
width: 512
}
}
};