mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 20:29:12 +02:00
78 lines
1.4 KiB
JavaScript
78 lines
1.4 KiB
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'line',
|
||
|
options: {
|
||
|
events: [],
|
||
|
scales: {
|
||
|
top: {
|
||
|
type: 'linear',
|
||
|
position: 'top',
|
||
|
ticks: {
|
||
|
display: false
|
||
|
},
|
||
|
gridLines: {
|
||
|
display: false
|
||
|
},
|
||
|
title: {
|
||
|
display: true,
|
||
|
align: 'start',
|
||
|
text: 'top'
|
||
|
}
|
||
|
},
|
||
|
left: {
|
||
|
type: 'linear',
|
||
|
position: 'left',
|
||
|
ticks: {
|
||
|
display: false
|
||
|
},
|
||
|
gridLines: {
|
||
|
display: false
|
||
|
},
|
||
|
title: {
|
||
|
display: true,
|
||
|
align: 'start',
|
||
|
text: 'left'
|
||
|
}
|
||
|
},
|
||
|
bottom: {
|
||
|
type: 'linear',
|
||
|
position: 'bottom',
|
||
|
ticks: {
|
||
|
display: false
|
||
|
},
|
||
|
gridLines: {
|
||
|
display: false
|
||
|
},
|
||
|
title: {
|
||
|
display: true,
|
||
|
align: 'start',
|
||
|
text: 'bottom'
|
||
|
}
|
||
|
},
|
||
|
right: {
|
||
|
type: 'linear',
|
||
|
position: 'right',
|
||
|
ticks: {
|
||
|
display: false
|
||
|
},
|
||
|
gridLines: {
|
||
|
display: false
|
||
|
},
|
||
|
title: {
|
||
|
display: true,
|
||
|
align: 'start',
|
||
|
text: 'right'
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
spriteText: true,
|
||
|
canvas: {
|
||
|
height: 256,
|
||
|
width: 256
|
||
|
},
|
||
|
}
|
||
|
};
|