Chart.js/test/fixtures/controller.line/fill/value.js

44 lines
630 B
JavaScript
Raw Normal View History

module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
2019-03-21 09:06:39 +01:00
data: [-2, -6, -4, -8, -6, -10],
backgroundColor: '#ff0000',
fill: false
},
{
// option in element (fallback)
2019-03-21 09:06:39 +01:00
data: [0, 4, 2, 6, 4, 8],
}
]
},
options: {
legend: false,
title: false,
elements: {
line: {
2019-03-21 09:06:39 +01:00
backgroundColor: '#00ff00',
fill: true,
}
},
2019-03-21 09:06:39 +01:00
layout: {
padding: 32
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
canvas: {
height: 256,
width: 512
}
}
};