mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
78 lines
1.5 KiB
JavaScript
78 lines
1.5 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: 'end',
|
|
text: ['top', 'line2', 'line3']
|
|
}
|
|
},
|
|
left: {
|
|
type: 'linear',
|
|
position: 'left',
|
|
ticks: {
|
|
display: false
|
|
},
|
|
grid: {
|
|
display: false
|
|
},
|
|
title: {
|
|
display: true,
|
|
align: 'end',
|
|
text: ['left', 'line2', 'line3']
|
|
}
|
|
},
|
|
bottom: {
|
|
type: 'linear',
|
|
position: 'bottom',
|
|
ticks: {
|
|
display: false
|
|
},
|
|
grid: {
|
|
display: false
|
|
},
|
|
title: {
|
|
display: true,
|
|
align: 'end',
|
|
text: ['bottom', 'line2', 'line3']
|
|
}
|
|
},
|
|
right: {
|
|
type: 'linear',
|
|
position: 'right',
|
|
ticks: {
|
|
display: false
|
|
},
|
|
grid: {
|
|
display: false
|
|
},
|
|
title: {
|
|
display: true,
|
|
align: 'end',
|
|
text: ['right', 'line2', 'line3']
|
|
}
|
|
},
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
spriteText: true,
|
|
canvas: {
|
|
height: 256,
|
|
width: 256
|
|
},
|
|
}
|
|
};
|