Chart.js/test/fixtures/controller.scatter/showLines/true.js

34 lines
492 B
JavaScript
Raw Normal View History

module.exports = {
description: 'showLines option should draw a line if true',
config: {
type: 'scatter',
data: {
datasets: [{
data: [{x: 10, y: 15}, {x: 15, y: 10}],
pointRadius: 10,
backgroundColor: 'red',
showLine: true,
label: 'dataset1'
}],
},
options: {
legend: false,
title: false,
scales: {
x: {
display: false
},
y: {
display: false
}
}
}
},
options: {
canvas: {
width: 256,
height: 256
}
}
};