Chart.js/test/fixtures/controller.line/showLines/dataset.js

37 lines
584 B
JavaScript
Raw Normal View History

module.exports = {
description: 'should draw all elements except lines turned off per dataset',
config: {
type: 'line',
data: {
datasets: [{
data: [10, 15, 0, -4],
label: 'dataset1',
borderColor: 'red',
backgroundColor: 'green',
showLine: false,
fill: false
}],
labels: ['label1', 'label2', 'label3', 'label4']
},
options: {
legend: false,
title: false,
showLines: true,
scales: {
x: {
display: false
},
y: {
display: false
}
}
}
},
options: {
canvas: {
width: 512,
height: 512
}
}
};