mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
6ac89cbb25
* Rename `options.gridLines` to `options.grid` * Rename `offsetGridLines` to `offset`
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
|
|
},
|
|
grid: {
|
|
display: false
|
|
},
|
|
title: {
|
|
display: true,
|
|
align: 'start',
|
|
text: 'top'
|
|
}
|
|
},
|
|
left: {
|
|
type: 'linear',
|
|
position: 'left',
|
|
ticks: {
|
|
display: false
|
|
},
|
|
grid: {
|
|
display: false
|
|
},
|
|
title: {
|
|
display: true,
|
|
align: 'start',
|
|
text: 'left'
|
|
}
|
|
},
|
|
bottom: {
|
|
type: 'linear',
|
|
position: 'bottom',
|
|
ticks: {
|
|
display: false
|
|
},
|
|
grid: {
|
|
display: false
|
|
},
|
|
title: {
|
|
display: true,
|
|
align: 'start',
|
|
text: 'bottom'
|
|
}
|
|
},
|
|
right: {
|
|
type: 'linear',
|
|
position: 'right',
|
|
ticks: {
|
|
display: false
|
|
},
|
|
grid: {
|
|
display: false
|
|
},
|
|
title: {
|
|
display: true,
|
|
align: 'start',
|
|
text: 'right'
|
|
}
|
|
},
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
spriteText: true,
|
|
canvas: {
|
|
height: 256,
|
|
width: 256
|
|
},
|
|
}
|
|
};
|