mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
35 lines
522 B
JavaScript
35 lines
522 B
JavaScript
|
module.exports = {
|
||
|
threshold: 0.01,
|
||
|
config: {
|
||
|
type: 'line',
|
||
|
data: {
|
||
|
labels: ['2017', '2019', '2020', '2025', '2042'],
|
||
|
datasets: [{data: [0, 1, 2, 3, 4, 5], fill: false}]
|
||
|
},
|
||
|
options: {
|
||
|
scales: {
|
||
|
x: {
|
||
|
type: 'time',
|
||
|
min: '2012',
|
||
|
max: '2051',
|
||
|
offset: true,
|
||
|
time: {
|
||
|
parser: 'YYYY',
|
||
|
},
|
||
|
ticks: {
|
||
|
source: 'labels'
|
||
|
},
|
||
|
distribution: 'linear'
|
||
|
},
|
||
|
y: {
|
||
|
display: false
|
||
|
}
|
||
|
},
|
||
|
legend: false
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
spriteText: true
|
||
|
}
|
||
|
};
|