Chart.js/test/fixtures/controller.line/showLines/dataset.js
Jukka Kurkela 91164e8c66
Line hide (#7612)
* Add support for description in fixtures
* Update datasetController to draw active(s) last
* Handle hiding of line by borderWidth
* Disable filling of scatter charts by default
* Make radar chart consistent with line
2020-07-13 13:20:05 -04:00

37 lines
584 B
JavaScript

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
}
}
};