mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 04:39:06 +02:00
37 lines
584 B
JavaScript
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
|
||
|
}
|
||
|
}
|
||
|
};
|