Chart.js/test/fixtures/element.line/stepped/middle.js

31 lines
498 B
JavaScript
Raw Normal View History

module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 1, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: false,
lineTension: 0,
steppedLine: 'middle'
}
]
},
options: {
legend: false,
title: false,
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
options: {
canvas: {
height: 256,
width: 512
}
}
};