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