mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
50 lines
862 B
JavaScript
50 lines
862 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'line',
|
||
|
options: {
|
||
|
events: [],
|
||
|
scales: {
|
||
|
y: {
|
||
|
type: 'linear',
|
||
|
position: 'center',
|
||
|
min: 0,
|
||
|
max: 100,
|
||
|
ticks: {
|
||
|
display: false
|
||
|
},
|
||
|
grid: {
|
||
|
display: false
|
||
|
},
|
||
|
title: {
|
||
|
display: true,
|
||
|
text: 'vertical'
|
||
|
}
|
||
|
},
|
||
|
x: {
|
||
|
type: 'linear',
|
||
|
position: 'bottom',
|
||
|
min: 0,
|
||
|
max: 100,
|
||
|
ticks: {
|
||
|
display: false
|
||
|
},
|
||
|
grid: {
|
||
|
display: false
|
||
|
},
|
||
|
title: {
|
||
|
display: true,
|
||
|
text: 'horizontal'
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
spriteText: true,
|
||
|
canvas: {
|
||
|
height: 256,
|
||
|
width: 256
|
||
|
},
|
||
|
}
|
||
|
};
|