mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 20:59:08 +02:00
53 lines
856 B
JavaScript
53 lines
856 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'line',
|
||
|
data: {
|
||
|
labels: [
|
||
|
'Aaron',
|
||
|
'Adam',
|
||
|
'Albert',
|
||
|
'Alex',
|
||
|
'Allan',
|
||
|
'Aman',
|
||
|
'Anthony',
|
||
|
'Autoenrolment',
|
||
|
'Avril',
|
||
|
'Bernard'
|
||
|
],
|
||
|
datasets: [{
|
||
|
backgroundColor: 'rgba(252,233,79,0.5)',
|
||
|
borderColor: 'rgba(252,233,79,1)',
|
||
|
borderWidth: 1,
|
||
|
data: [101,
|
||
|
185,
|
||
|
24,
|
||
|
311,
|
||
|
17,
|
||
|
21,
|
||
|
462,
|
||
|
340,
|
||
|
140,
|
||
|
24
|
||
|
]
|
||
|
}]
|
||
|
},
|
||
|
options: {
|
||
|
maintainAspectRatio: false,
|
||
|
plugins: {
|
||
|
legend: true,
|
||
|
title: {
|
||
|
display: true,
|
||
|
text: 'test'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
spriteText: true,
|
||
|
canvas: {
|
||
|
height: 185,
|
||
|
width: 185
|
||
|
}
|
||
|
}
|
||
|
};
|