mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 12:49:07 +02:00
46 lines
617 B
JavaScript
46 lines
617 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'line',
|
||
|
data: {
|
||
|
labels: [0, 1, 2, 3, 4, 5],
|
||
|
datasets: [
|
||
|
{
|
||
|
data: [3, 1, 2, 0, 8, 1],
|
||
|
backgroundColor: '#ff0000',
|
||
|
order: 2
|
||
|
},
|
||
|
{
|
||
|
data: [0, 4, 2, 6, 4, 8],
|
||
|
backgroundColor: '#00ff00',
|
||
|
order: 1
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
options: {
|
||
|
legend: false,
|
||
|
title: false,
|
||
|
elements: {
|
||
|
line: {
|
||
|
fill: true
|
||
|
},
|
||
|
point: {
|
||
|
radius: 0
|
||
|
}
|
||
|
},
|
||
|
layout: {
|
||
|
padding: 32
|
||
|
},
|
||
|
scales: {
|
||
|
xAxes: [{display: false}],
|
||
|
yAxes: [{display: false}]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
canvas: {
|
||
|
height: 256,
|
||
|
width: 512
|
||
|
}
|
||
|
}
|
||
|
};
|