Chart.js/test/fixtures/controller.line/showLine/dataset.js
Jukka Kurkela 021561072b
Disable all plugins when options.plugins = false (#8098)
Disabling all plugins when options.plugins = false
2020-11-23 17:58:03 -05:00

41 lines
642 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: {
showLine: true,
scales: {
x: {
display: false
},
y: {
display: false
}
},
plugins: {
legend: false,
title: false,
tooltip: false,
filler: true
}
}
},
options: {
canvas: {
width: 512,
height: 512
}
}
};